首页 > 解决方案 > Rails - Error performing ActionMailer::DeliveryJob

问题描述

I am using SMTP in Production with Rails.

I am sending the email with deliver_later, if that is relevant.

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.

I am using Ruby 2.3.7 and Rails 5.2.2.

Other similar posts on stack overflow haven't seemed to fix this.

标签: ruby-on-railsrubysmtp

解决方案


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


推荐阅读