特牛网址导航

python3 发送邮件_小小故事小小人的博客-CSDN博客

网友收藏
python3 发送邮件# -*- coding=utf-8 -*-import smtplibfrom email.header import Headerfrom email.mime.text import MIMETextmessage = MIMEText('Hello2021~', _subtype='plain', _charset='utf-8')message['From'] = Header('WTT', 'utf-8') # 邮件的发送者message['To'].