2010-04-26 8 views

risposta

6

Da the docs:

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

È possibile modificare solo il sottotipo di tipo MIME sembra. Quindi sarà sempre

"text/%s" % msg.content_subtype