class documentation

class EmailMultiAlternatives(EmailMessage):

View In Hierarchy

A version of EmailMessage that makes it easy to send multipart/alternative messages. For example, including text and HTML versions of the text is made easier.
Method __init__ Initialize a single email message (which can be sent to multiple recipients).
Method ​_create​_alternatives Undocumented
Method ​_create​_message Undocumented
Method attach​_alternative Attach an alternative content representation.
Class Variable alternative​_subtype Undocumented
Instance Variable alternatives Undocumented

Inherited from EmailMessage:

Method ​_create​_attachment Convert the filename, content, mimetype triple into a MIME attachment object.
Method ​_create​_attachments Undocumented
Method ​_create​_mime​_attachment Convert the content, mimetype pair into a MIME attachment object.
Method ​_set​_list​_header​_if​_not​_empty Set msg's header, either from self.extra_headers, if present, or from the values argument.
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​_file Attach a file from the filesystem.
Method get​_connection 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​_subtype Undocumented
Class Variable encoding Undocumented
Class Variable mixed​_subtype Undocumented
Instance Variable attachments Undocumented
Instance Variable bcc Undocumented
Instance Variable body Undocumented
Instance Variable cc Undocumented
Instance Variable connection Undocumented
Instance Variable extra​_headers Undocumented
Instance Variable from​_email Undocumented
Instance Variable reply​_to Undocumented
Instance Variable subject Undocumented
Instance Variable to Undocumented
def __init__(self, subject='', body='', from_email=None, to=None, bcc=None, connection=None, attachments=None, headers=None, alternatives=None, cc=None, reply_to=None):
Initialize a single email message (which can be sent to multiple recipients).
def _create_alternatives(self, msg):

Undocumented

def _create_message(self, msg):
def attach_alternative(self, content, mimetype):
Attach an alternative content representation.
alternative_subtype: str =

Undocumented

alternatives =

Undocumented