There are a couple of way to solve this.

One. add to the environments/production.rb file

   config.action_mailer.default_url_options = { :host => 'localhost' }

Changing localhost to whatever your production host is.

In your mailer ie user_mailer.rb set the host just prior to sending the 
mail with the mail statement like this

    @host = Rails.env == 'production' ? "<production server>" : "localhost"
    mail( :subject => "#{app_name} -- forgotten password",
          :to      => user.email_address )

and I'm sure there are others.

Bob

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/PXoOeeRLJxwJ.
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.

Reply via email to