我在Rails的生产中使用SMTP。
我是发送电子邮件与deliver_later,如果这是相关的。
我收到以下错误:
E, [2019-01-28T20:13:35.610611 #63161] ERROR -- : [ActiveJob] [ActionMailer::DeliveryJob] [97578598-066d-46a0-b7fb-9daeb2eaf689] Error performing ActionMailer::DeliveryJob (Job ID: 97578598-066d-46a0-b7fb-9daeb2eaf689) from Async(mailers) in 1455.28ms: EOFError (end of file reached):这是我的配置:
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => 'postal.<redacted>',
:port => '25',
:authentication => 'plain',
:user_name => '<redacted>'/main',
:password => '<redacted>''
}
config.action_mailer.perform_deliveries = true
config.action_mailer.default_url_options = { :host => '<redacted>'', :protocol => 'https' }我对rails相当陌生,因此任何帮助都将不胜感激。
我正在使用Ruby 2.3.7和Rails 5.2.2。
堆栈溢出上的其他类似帖子似乎没有修复这个问题。
发布于 2019-01-31 21:29:26
事实证明,问题就在我使用的邮件服务器上。令人困惑的是,Rails似乎没有清楚地报告这一点。谢谢你的帮助。
https://stackoverflow.com/questions/54409702
复制相似问题