开发者

Rails app won't send emails in production mode

开发者 https://www.devze.com 2022-12-21 10:19 出处:网络
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 t

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

精彩评论

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