我已经在 heroku 上推送了一个具有反馈功能(电子邮件)的机器人,但我需要在 gmail 允许我使用它之前登录到网络浏览器。有什么办法解决这个问题吗?
smtplib.SMTPAuthenticationError: (534, b'5.7.14 /Please log in via your web browser and\n5.7.14 then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/answer/78754 d9sm5410600qte.0 - gsmtp')
日志中的错误
最佳答案
链接的问题已关闭,因此我将在此处发布对我有用的内容。
如前所述,我必须在我的 google 帐户上允许安全性较低的应用程序。然后在谷歌上,我必须为 Heroku 应用程序创建一个特定的密码,如此处所述 https://support.google.com/accounts/answer/185833?authuser=2
关于python-3.x - heroku smtplib 需要登录浏览器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43355631/