引发 SMTPAuthenticationError(code, resp) smtplib.SMTPAuthenticationError

问题描述 投票:0回答:1

我正在尝试制作一个程序,在 Windows 中的特定时间通过 gmail.com 向我发送报价。但我收到一个错误:

引发 SMTPAuthenticationError(code, resp) smtplib.SMTPAuthenticationError: (535, b'5.7.8 用户名和密码不被接受。了解更多信息 5.7.8 https://support.google.com/mail/?p=BadCredentials y18-20020a2e9792000000b002c50233a2f5sm56354lji.52 - gsmtp')

你能解释一下为什么会出现这个错误吗?

python python-3.x python-2.7 smtp
1个回答
0
投票

发生这种情况是为了验证您的密码,您应该转到您的 Gmail 并进行两步验证,然后在您的代码中将您的密码更改为此

© www.soinside.com 2019 - 2024. All rights reserved.