Python发送邮件,body是html(纯文本)的,收到后怎么变成了源码格式了?
file="AbstractCachingViewResolver.html"content=open(file).read()body=contentsend_mail...
file = "AbstractCachingViewResolver.html"
content = open(file).read()
body = content
send_mail(mail, subject, body)
应该怎么解决? 展开
content = open(file).read()
body = content
send_mail(mail, subject, body)
应该怎么解决? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询