2010-04-26 40 views

Trả lời

6

Từ the docs:

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

Bạn chỉ có thể thay đổi các subtype của Mimetype vẻ bề ngoài. Vì vậy, nó sẽ luôn là

"text/%s" % msg.content_subtype

Các vấn đề liên quan