87

python3 发送电子邮件-Forand

 6 years ago
source link: http://blog.51cto.com/853056088/2073898
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
使用python3发送电子邮件,我之前在网上找了好几篇文章不论是都不行,最后在网上找到这篇文章了!首先在163邮箱开启授权码记住这个授权密码,我们在python代码里面用的就是这个密码不然会出现这个报错#-*-coding:utf-8-*-importsmtplibfromemail.headerimportHeaderfromemail.mime.textimportMIMEText#第三方SM

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK