2010-04-26 70 views

回答

6

the docs

msg = EmailMessage(subject, html_content, from_email, [to]) 
msg.content_subtype = "html" # Main content is now text/html 
msg.send() 

你只能改变它似乎MIME类型的子类型。所以它永远是

"text/%s" % msg.content_subtype