python smtplib登录失败

python给腾讯企业邮箱发送邮件

smtp = smtplib.SMTP()
smtp.connect(smtpserver)
smtp.starttls()
smtp.login(username, password)
smtp.sendmail(sender, receiver, msgRoot.as_string())
smtp.quit()



smtp server = smtp.exmail.qq.com
login的时候一直失败,登录的密码不是个人密码,要改成客户端的专用密码

posted on 2019-07-09 10:33  混迹互联网的Aunt  阅读(307)  评论(0)    收藏  举报

导航