heroku smtplib need to log into browser

痴心易碎 提交于 2020-12-09 04:56:41

问题


I have pushed a bot onto heroku with feedback capability (email) but i need to log into web browser before gmail will allow me to use it. Any way round this?

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')

Error from logs


回答1:


The linked question is closed so I'll post here what worked for me.

I has to allow less secure apps on my google account as previously described. Then on Google, I has to create a specific password for the Heroku app as described here https://support.google.com/accounts/answer/185833?authuser=2



来源:https://stackoverflow.com/questions/43355631/heroku-smtplib-need-to-log-into-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!