![](/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.