On my setup request_password_reset works exactly the same for administrator as for anyone else.
Assuming you've not changed anything in the guts of what hobo does for this, is it possible that your problem is *outside* hobo? ie for example maybe the email is being sent, but ending up in your spam folder? or maybe the admin's email address is incorrect in the database? On 6 June, 17:43, blueHandTalking <[email protected]> wrote: > Paul, > > Thank for taking a moment to reply to my post. > > My question is: Why is this email not being sent? > > So you correctly extracted that :) > > My 'activate' email is being sent for users, > so that is why it seems unusual that the > email for 'request_password_reset' does not get > sent. Also, I am using user_mailer.rb to send > a custom email. That also works fine. I just did a > test for an ordinary user, and 'request_password_reset' > works perfectly. > > It is only for the administrator that it does not work. > So, my question now is, how do I reset the password > for the administrator, if 'request_password_reset' does > not work? > > Cheers, > > Jet > > On Jun 6, 5:28 am, storitel <[email protected]> wrote: > > > not sure I'm understanding your question correctly, but if it's just > > that the email is not being generated... I have recently setup this > > functionality by following this recipe... > > >http://cookbook.hobocentral.net/recipes/43-using-gmail-for-sending-email > > > the key steps are > > 1) add the tlsmail gem to your .gems (assuming you're using > > heroku) ... tlsmail –version ‘>= 0.0.1’ > > 2) in your config/production.rb define > > config.action_mailer.delivery_method for whatever email server/account > > you're using > > 3) in environment.rb append the following line... > > Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) > > > br > > Paul > > > On 6 June, 03:44, blueHandTalking <[email protected]> wrote: > > > > It appears that :request_password_reset is not being called > > > when I recently tested it. > > > > The form looks O.K.: > > > > <form action="" class="forgot-password" method="post"><div > > > class="hidden-fields"><input id="page_path" name="page_path" > > > type="hidden" value="users/forgot_password" /><input > > > name="authenticity_token" type="hidden" > > > value="kiESRRC3MX4sBQ2h7BlW1SMjrbNj79B0KyMFPT4C0AY=" /> > > > > ...and the log does not show anything unusual, except I do not > > > see where request_password_reset is called ( if it would show up?): > > > > Processing UsersController#forgot_password (for 63.165.26.182 at > > > 2010-06-05 17:42:36) [POST] > > > Parameters: {"page_path"=>"users/forgot_password", > > > "action"=>"forgot_password", > > > "authenticity_token"=>"kiDPAAD3MX4sBQ2h7BlW2SMjrbCW09B0KyMFO > > > LcC0HY=", "controller"=>"users", "email_address"=>"[email protected]"} > > > Completed in 34ms (View: 0, DB: 0) | 200 OK [http://www.builder.com/ > > > forgot_password] > > > > ...but the email does not get sent. Everything is the default in > > > user_mailer.rb and forgot_password.erb. > > > > I am trying to do this for the administrator. > > > > This is on the production site. Any thoughts, or suggestions on how I > > > could trace execution, without it being too complex? > > > > Or, for some reason is this not possible to do for the administrator? > > > > Jet -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
