Python 发送HTML邮件

Python 发送HTML邮件 在构造MIMEText对象时,把HTML字符串传进去,再把第二个参数由plain变为html就能够了html # -*- coding:utf-8 -*- import smtplib from email.mime.text import MIMEText from email.header import Header def sendHtml_email(msg
相关文章
相关标签/搜索