heroku smtplib需要登录浏览器 [英] heroku smtplib need to log into browser

查看:121
本文介绍了heroku smtplib需要登录浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将具有反馈功能(电子邮件)的机器人推到heroku上,但是我需要登录网络浏览器,然后gmail才能允许我使用它.可以解决这个问题吗?

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/请通过网络浏览器登录,\ n5.7.14,然后重试.\ n5.7.14在\ n5.7.14了解更多信息 https://support.google.com/mail/answer/78754 d9sm5410600qte.0 -gsmtp')

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

日志错误

推荐答案

已关闭链接的问题,因此我将在此处发布对我有用的内容.

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

如前所述,我必须在我的Google帐户上允许安全性较低的应用程序.然后在Google上,我必须为Heroku应用创建一个特定的密码,如此处所述. https://support.google.com/accounts/answer/185833?authuser=2

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

这篇关于heroku smtplib需要登录浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆