简体   繁体   English

Mailer Ruby Rails Heroku 错误地将邮件发送到

[英]Mailer Ruby Rails Heroku wrong sent mail to

I'm having an issue where the Mailer function of rails is working fine locally.我遇到了 Rails 的 Mailer 函数在本地工作正常的问题。 The Sent mail to function is sending to the correct email address specified in the email form submission. Sent mail to 功能正在发送到电子邮件表单提交中指定的正确电子邮件地址。 This feature is working fine.此功能运行良好。

The issue is when it's pushed to Heroku, the Send Mail to is my email address, regardless if I enter in other email addresses.问题是当它被推送到 Heroku 时,发送邮件到是我的电子邮件地址,无论我是否输入其他电子邮件地址。 Heroku logs do not show any errors. Heroku 日志不显示任何错误。 I check the database on Heroku, it has the correct email addresses.我检查了 Heroku 上的数据库,它有正确的电子邮件地址。

Solved it by passing in the correct instance of the static variable.通过传入静态变量的正确实例来解决它。 Now it's using the same email when the send confirmation method gets called.现在,当调用发送确认方法时,它使用相同的电子邮件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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