Ticket #13420: docs_patch.diff

File docs_patch.diff, 732 bytes (added by Dominic Rodger, 14 years ago)
  • docs/topics/email.txt

     
    340340confident that your recipients can handle an alternative content type, you can
    341341use the ``content_subtype`` attribute on the
    342342: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 the
    344 subtype. For example::
     343The major type will always be ``"text"``, but you can change the subtype. For
     344example::
    345345
    346346    msg = EmailMessage(subject, html_content, from_email, [to])
    347347    msg.content_subtype = "html"  # Main content is now text/html
Back to Top