开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜