config.action_mailer.smtp_settings = {
:address => "smtp.xxx.com",
:port => 25,
:domain => "xxx.com",
:authentication => :login,
:user_name => "[email protected]",
:password => "154#AbitU@s",
:enable_starttls_auto => true
}
相同的代码、机器把环境切换到 production,发邮件就会出报错
Sent mail to [email protected] (1156ms)
Completed 500 Internal Server Error in 1688ms
Errno::ECONNREFUSED (No connection could be made because the target machine actively refused it. - connect(2)):
windows\linux 都错 求指导,谢谢!