1、邮件正文乱码
msg = MIMEText(body,format,'utf-8') msg["Accept-Language"]="zh-CN" msg["Accept-Charset"]="ISO-8859-1,utf-8"
2、邮件主题乱码
if not isinstance(subject,unicode): subject = unicode(subject) msg['Subject'] = subject
上一篇:使用python发送邮件给多人的方法
下一篇:python中filter()函数如何用None过滤