Sounds like your domain is not correct in your enviroment file.
What are your settings in enviroment.rb?
this config works perfect in my production servers (using apache/
fusion_passenger):
enviroment.rb:
------------------------
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "mail.myserver.com",
:port => 25,
:domain => "myserver.com",
:authentication => :login,
:user_name => "no-reply.myserver",
:password => "mypassword",
}
--------------------------
user_mailer.rb:
-------------------
class UserMailer < ActionMailer::Base
def forgot_password(user, key)
host = Hobo::Controller.request_host
app_name = Hobo::Controller.app_name || host
@subject = "#{app_name} -- forgotten password"
@body = { :user => user, :key => key, :host =>
host, :app_name => app_name }
@recipients = user.email_address
@from = "no-reply@#{host}"
@sent_on = Time.now
@headers = {}
end
end
--------------
bes regards...
eddie.
On 18 mayo, 11:45, Bob Sleys <[email protected]> wrote:
> I recently moved my app to the production server, not live yet though and
> the links in the user invitation and password reset e-mails are
> stillhttp://localhost/....
>
> Any idea how to fix this?
>
> Thanks
> Bob
--
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.