class EmailMessage: (source)
Known subclasses: django.core.mail.EmailMultiAlternatives
A container for email information.
Method | __init__ |
Initialize a single email message (which can be sent to multiple recipients). |
Method | attach |
Attach a file with the given filename and content. The filename can be omitted and the mimetype is guessed, if not provided. |
Method | attach |
Attach a file from the filesystem. |
Method | get |
Undocumented |
Method | message |
Undocumented |
Method | recipients |
Return a list of all recipients of the email (includes direct addressees as well as Cc and Bcc entries). |
Method | send |
Send the email message. |
Class Variable | content |
Undocumented |
Class Variable | encoding |
Undocumented |
Class Variable | mixed |
Undocumented |
Instance Variable | attachments |
Undocumented |
Instance Variable | bcc |
Undocumented |
Instance Variable | body |
Undocumented |
Instance Variable | cc |
Undocumented |
Instance Variable | connection |
Undocumented |
Instance Variable | extra |
Undocumented |
Instance Variable | from |
Undocumented |
Instance Variable | reply |
Undocumented |
Instance Variable | subject |
Undocumented |
Instance Variable | to |
Undocumented |
Method | _create |
Convert the filename, content, mimetype triple into a MIME attachment object. |
Method | _create |
Undocumented |
Method | _create |
Undocumented |
Method | _create |
Convert the content, mimetype pair into a MIME attachment object. |
Method | _set |
Set msg's header, either from self.extra_headers, if present, or from the values argument. |
django.core.mail.EmailMultiAlternatives
Initialize a single email message (which can be sent to multiple recipients).
Attach a file with the given filename and content. The filename can be omitted and the mimetype is guessed, if not provided. If the first parameter is a MIMEBase subclass, insert it directly into the resulting message attachments. For a text/* mimetype (guessed or specified), when a bytes object is specified as content, decode it as UTF-8. If that fails, set the mimetype to DEFAULT_ATTACHMENT_MIME_TYPE and don't decode the content.
Attach a file from the filesystem. Set the mimetype to DEFAULT_ATTACHMENT_MIME_TYPE if it isn't specified and cannot be guessed. For a text/* mimetype (guessed or specified), decode the file's content as UTF-8. If that fails, set the mimetype to DEFAULT_ATTACHMENT_MIME_TYPE and don't decode the content.
Return a list of all recipients of the email (includes direct addressees as well as Cc and Bcc entries).