Rails app won't send emails in production mode
Hey, I'm using Rails 2开发者_Go百科.3.5 and using rufus scheduler to send periodic emails. This works fine in development mode, but surprise surprise production mode has borked something. I've set the same actionmailer settings in both development and production files. Is there something I am missing?
hey, yes you're right i think. The settings were set to access the server as if it was external. By that I mean I changed options like the address to localhost and commenting out others. Check it out:
:address => "localhost",
:port => 25,
:domain => "www.mydomain.co.uk",
#:authentication => :login,
#:user_name => "blah",
#:password => "blah"
Hope this helps somebody else.
精彩评论