[英]How to debug the rails mailer
I am using mandril mailer, I have set up my mailers and everything was working fine, at some point the mailer stopped working, I am trying to send a message from the rails console 我正在使用mandril邮件程序,我已经设置了邮件程序,并且一切正常,在某个时候邮件程序停止工作,我正在尝试从Rails控制台发送消息
TaskCompletedMailer.client_created(email: 'mymail@gmail.com').deliver
I am getting a message in the console that the email has been delivered. 我在控制台中收到一条消息,说明电子邮件已送达。
[{"email"=>"mymail@gmail.com", "status"=>"sent", "_id"=>"184e03d40a874fa892b5549173ccba80", "reject_reason"=>nil}]
but the mail is not been delivered into my account. 但邮件未发送到我的帐户中。 How can I debug that ?
我该如何调试?
Check in the logs what can you see there. 检查日志,您可以在其中看到什么。 Probalby the action_mailer config is not correct for your current enviroment.
Probalby action_mailer配置不适用于您当前的环境。
您可以尝试使用协议分析器(例如Wireshark)来监视网卡上的SMTP通信,并检查rails应用发送给它的真实程度。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.