0
通过Rails的的ActionMailer邮件发送到特定域的地址,当我尝试过的ActionMailer从Rails的生产控制台发送邮件到一个特定的域,那么邮件不会没有错误消息发送:不能在生产
ActionMailer::Base.mail(from: "[email protected]", to: "[email protected]_domain.com", subject: "Test", body: "Dummy").deliver_now
当我更改地址[email protected]它的作品。 我还可以从Ubuntu的命令行发送邮件到任何地址:
mail -s "Test" [email protected]_domain.com
唯一的生产环境设置有关的邮箱是:
config.action_mailer.default_url_options = { :host => 'myhost.com' }
我用Rails 4.2.0和Ruby 2.2.0p0在生产中。 它已经工作了很长时间,自2月26日以来它已经破裂。
任何建议如何解决或调试技巧?