2010-04-26 3 views

Antwort

6

Von the docs:

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

Sie können nur den Subtyp des MIME-Typs ändern scheint. So ist es immer

"text/%s" % msg.content_subtype

Verwandte Themen