繁体   English   中英

Rails-执行ActionMailer :: DeliveryJob时出错

[英]Rails - Error performing ActionMailer::DeliveryJob

我在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.7Rails 5.2.2

关于堆栈溢出的其他类似文章似乎都没有解决此问题。

事实证明,问题出在我使用的邮件服务器上。 令人困惑的是,Rails似乎没有清楚地报告这一点。 谢谢你的帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM