![](/img/trans.png)
[英]Is there a way to debug mailer with sendgrid on heroku? Or to check if the mail get actually sent?
[英]Mailer Ruby Rails Heroku wrong sent mail to
我遇到了 Rails 的 Mailer 函數在本地工作正常的問題。 Sent mail to 功能正在發送到電子郵件表單提交中指定的正確電子郵件地址。 此功能運行良好。
問題是當它被推送到 Heroku 時,發送郵件到是我的電子郵件地址,無論我是否輸入其他電子郵件地址。 Heroku 日志不顯示任何錯誤。 我檢查了 Heroku 上的數據庫,它有正確的電子郵件地址。
通過傳入靜態變量的正確實例來解決它。 現在,當調用發送確認方法時,它使用相同的電子郵件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.