diff options
author | José L. Patiño <jose.lpa@gmail.com> | 2018-06-29 11:24:08 +0100 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-06-29 08:24:51 -0400 |
commit | a881499a77c814f65c0dd40dc5f3964fb870b0dd (patch) | |
tree | 0dc8fad86e03b9ffee36fbd71462f9f79e694801 | |
parent | a68481919398618a0ab56f09e918342072c538c9 (diff) | |
download | django-a881499a77c814f65c0dd40dc5f3964fb870b0dd.tar.gz |
[2.0.x] Fixed #29535 -- Updated email.MIME* references for Python 3.
Backport of b5dd6ef3d52544ec7533509915c61545d5c3d85a from master
-rw-r--r-- | docs/topics/email.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/topics/email.txt b/docs/topics/email.txt index 7b24597bf4..d3f555b595 100644 --- a/docs/topics/email.txt +++ b/docs/topics/email.txt @@ -272,7 +272,7 @@ All parameters are optional and can be set at any time prior to calling the new connection is created when ``send()`` is called. * ``attachments``: A list of attachments to put on the message. These can - be either ``email.MIMEBase.MIMEBase`` instances, or ``(filename, + be either :class:`~email.mime.base.MIMEBase` instances, or ``(filename, content, mimetype)`` triples. * ``headers``: A dictionary of extra headers to put on the message. The @@ -310,7 +310,7 @@ The class has the following methods: recipients will not raise an exception. * ``message()`` constructs a ``django.core.mail.SafeMIMEText`` object (a - subclass of Python's ``email.MIMEText.MIMEText`` class) or a + subclass of Python's :class:`~email.mime.text.MIMEText` class) or a ``django.core.mail.SafeMIMEMultipart`` object holding the message to be sent. If you ever need to extend the :class:`~django.core.mail.EmailMessage` class, you'll probably want to @@ -326,8 +326,8 @@ The class has the following methods: * ``attach()`` creates a new file attachment and adds it to the message. There are two ways to call ``attach()``: - * You can pass it a single argument that is an - ``email.MIMEBase.MIMEBase`` instance. This will be inserted directly + * You can pass it a single argument that is a + :class:`~email.mime.base.MIMEBase` instance. This will be inserted directly into the resulting message. * Alternatively, you can pass ``attach()`` three arguments: |