简体   繁体   English

Rails-执行ActionMailer :: DeliveryJob时出错

[英]Rails - Error performing ActionMailer::DeliveryJob

I am using SMTP in Production with Rails. 我在Rails生产中使用SMTP。

I am sending the email with deliver_later , if that is relevant. 如果相关,我将发送带有deliver_later的电子邮件。

I am receiving the following error: 我收到以下错误:

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):

Here is my config: 这是我的配置:

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' }

I am fairly new to rails so any help would be appreciated. 我对Rails相当陌生,因此不胜感激。

I am using Ruby 2.3.7 and Rails 5.2.2 . 我正在使用Ruby 2.3.7Rails 5.2.2

Other similar posts on stack overflow haven't seemed to fix this. 关于堆栈溢出的其他类似文章似乎都没有解决此问题。

As it turned out the problem was on the mail server as I was using. 事实证明,问题出在我使用的邮件服务器上。 The confusion was that Rails did not seem to report this clearly. 令人困惑的是,Rails似乎没有清楚地报告这一点。 Thanks for any help. 谢谢你的帮助。

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

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