Ticket #13420: docs_patch.diff
File docs_patch.diff, 732 bytes (added by , 15 years ago) |
---|
-
docs/topics/email.txt
340 340 confident that your recipients can handle an alternative content type, you can 341 341 use the ``content_subtype`` attribute on the 342 342 :class:`~django.core.mail.EmailMessage` class to change the main content type. 343 The major type will always be ``"text"``, but you can change it to the344 subtype. Forexample::343 The major type will always be ``"text"``, but you can change the subtype. For 344 example:: 345 345 346 346 msg = EmailMessage(subject, html_content, from_email, [to]) 347 347 msg.content_subtype = "html" # Main content is now text/html