我在我的生产环境中使用Gmail帐户,因为我负担不起购买邮件主机的费用。我使用该帐户向使用action mailer的人发送电子邮件。问题是我的主机是heroku,正如你所知道的,它并不总是完全相同的服务器。因此,每次服务器更改时,我都必须访问此 http://www.google.com/accounts/DisplayUnlockCaptcha 以启用打开的each https://www.google.com/settings/security/lesssecureapps 。
每次dyno重新启动时,我都要重新做一次。我的选择是什么?我应该做什么?非常感谢
发布于 2015-09-18 11:00:49
我使用了sendgrid,这是一个heroku插件,用于生产邮件,与heroku配合使用效果很好。
遵循本教程:https://devcenter.heroku.com/articles/sendgrid
尽管如此,你必须小心:
xxxxxxx_mailer.rb中的
`
https://stackoverflow.com/questions/32639274
复制相似问题