python for qq email raise SMTPAuthenticationError 535

每天一点点,记录工作中实操可行

在用python登录qq邮箱发送邮件时,出现以下错误

raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b’Error: 等等

原因:qq邮箱未开启SMTP服务
解决方法:
登录你的qq邮箱,选择“设置”,点进去,选“账户”
python for qq email raise SMTPAuthenticationError 535

然后,下拉,下拉,下拉,拉到这个位置
把这里,改为“开启”(因为我的已经开启了,所以现在看到的是“关闭”)
就哦了
python for qq email raise SMTPAuthenticationError 535

这里的密码,是python里的password哦~千万不要写成你的qq邮箱登录密码啦

python for qq email raise SMTPAuthenticationError 535