简体   繁体   中英

Mailer Ruby Rails Heroku wrong sent mail to

I'm having an issue where the Mailer function of rails is working fine locally. The Sent mail to function is sending to the correct email address specified in the email form submission. 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 logs do not show any errors. I check the database on Heroku, it has the correct email addresses.

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.

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