2010-04-26 17 views

Respuesta

6

De the docs:

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

Sólo puede cambiar el subtipo de los mimetype lo que parece. Por lo tanto, siempre será

"text/%s" % msg.content_subtype

Cuestiones relacionadas