【发布时间】:2013-01-04 03:52:42
【问题描述】:
我似乎无法在生产中发送确认邮件。日志中没有错误,并且 sendmail 工作正常。这是我的生产配置:
config.action_mailer.delivery_method = :sendmail
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true, #this is the important stuff!
:address => "localhost",
:port => 25,
:domain => 'beautifulidiot.com',
:openssl_verify_mode => 'none',
:perform_deliveries => true
}
我尝试将交付方式更改为 :smtp,也没有运气。这是 Rails 3.2.5。
感谢您的帮助, 凯文
【问题讨论】:
-
添加
config.action_mailer.perform_deliveries = true,如果你想通过smtp尝试,那么端口应该是587而不是25
标签: ruby-on-rails devise actionmailer