ruby-on-rails - 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.
解决方案
事实证明,问题出在我使用的邮件服务器上。令人困惑的是,Rails 似乎没有清楚地报告这一点。谢谢你的帮助。
推荐阅读
- java - 使用 Criteria API 根据条件计算加入表的结果
- php - 通过php登录instagram
- mongoose - 在 Post Hooks 中修改 Mongoose 对象
- c - 用逗号分隔的十六进制值将文件读入C中的数组
- c# - 尽管我允许不太安全的选项,但“发送邮件失败”错误
- nginx - 将 IPv4 与 IPv6 结合使用时,为什么我的服务器很慢且 SSL 不匹配
- python - Python - 在两个图像上感知检测相同的对象 - 并选择它们
- ios - 如果我的 DispatchGroup 从未完成会发生什么
- javascript - 比较两个数组对象数据并作为一个对象合并到javascript中的数组中?
- jquery - 上下滚动时按钮弹跳