报错:smtplib.SMTPAuthenticationError: (535, b'Error: authentication failed')

因为这里要的password是第三方使用邮箱时的password,所以应该是授权码而不是密码

授权码设置步骤:

1.登录163邮箱

2.进入设置,点击“开启smtp服务”

python 发送邮件 smtplib.SMTPAuthenticationError: (535, b'Error: authentication failed')  以及授权码设置步骤

 

 

3.设置客户端授权密码  点击开启 。提示编辑短信 发送,发送就好

python 发送邮件 smtplib.SMTPAuthenticationError: (535, b'Error: authentication failed')  以及授权码设置步骤

 

 

4.填写 并确认。

python 发送邮件 smtplib.SMTPAuthenticationError: (535, b'Error: authentication failed')  以及授权码设置步骤

 

 5.把登录邮件代码终端的password的值换成授权码 就可以了

相关文章:

  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2021-11-11
  • 2019-12-20
  • 2022-12-23
  • 2021-07-23
猜你喜欢
  • 2021-04-15
  • 2022-12-23
  • 2021-11-21
  • 2021-12-09
  • 2021-11-25
  • 2021-06-12
  • 2021-10-25
相关资源
相似解决方案