简体   繁体   中英

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

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.

您可以尝试使用协议分析器(例如Wireshark)来监视网卡上的SMTP通信,并检查rails应用发送给它的真实程度。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM