Edited docs/email.txt changes from [5550]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-06-30 21:20:25 +00:00
parent b67a2feebf
commit 23a50aa491
1 changed files with 5 additions and 5 deletions

View File

@ -241,7 +241,7 @@ optional and can be set at any time prior to calling the ``send()`` method.
content, mimetype)`` triples. content, mimetype)`` triples.
* ``headers``: A dictionary of extra headers to put on the message. The * ``headers``: A dictionary of extra headers to put on the message. The
keys are the header name, values are the header values. It is up to the keys are the header name, values are the header values. It's up to the
caller to ensure header names and values are in the correct format for caller to ensure header names and values are in the correct format for
an e-mail message. an e-mail message.
@ -258,15 +258,15 @@ The class has the following methods:
if none already exists. if none already exists.
* ``message()`` constructs a ``django.core.mail.SafeMIMEText`` object (a * ``message()`` constructs a ``django.core.mail.SafeMIMEText`` object (a
sub-class of Python's ``email.MIMEText.MIMEText`` class) or a subclass of Python's ``email.MIMEText.MIMEText`` class) or a
``django.core.mail.SafeMIMEMultipart`` object holding the ``django.core.mail.SafeMIMEMultipart`` object holding the
message to be sent. If you ever need to extend the `EmailMessage` class, message to be sent. If you ever need to extend the ``EmailMessage`` class,
you'll probably want to override this method to put the content you wish you'll probably want to override this method to put the content you want
into the MIME object. into the MIME object.
* ``recipients()`` returns a list of all the recipients of the message, * ``recipients()`` returns a list of all the recipients of the message,
whether they're recorded in the ``to`` or ``bcc`` attributes. This is whether they're recorded in the ``to`` or ``bcc`` attributes. This is
another method you might need to override when sub-classing, because the another method you might need to override when subclassing, because the
SMTP server needs to be told the full list of recipients when the message SMTP server needs to be told the full list of recipients when the message
is sent. If you add another way to specify recipients in your class, they is sent. If you add another way to specify recipients in your class, they
need to be returned from this method as well. need to be returned from this method as well.