簡體   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