class documentation

class MIMEMixin:

Known subclasses: django.core.mail.message.SafeMIMEMessage, django.core.mail.SafeMIMEMultipart, django.core.mail.SafeMIMEText

View In Hierarchy

Undocumented

Method as​_bytes Return the entire formatted message as bytes. Optional `unixfrom' when True, means include the Unix From_ envelope header.
Method as​_string Return the entire formatted message as a string. Optional `unixfrom' when True, means include the Unix From_ envelope header.
def as_bytes(self, unixfrom=False, linesep='\n'):

Return the entire formatted message as bytes. Optional `unixfrom' when True, means include the Unix From_ envelope header.

This overrides the default as_bytes() implementation to not mangle lines that begin with 'From '. See bug #13433 for details.

def as_string(self, unixfrom=False, linesep='\n'):

Return the entire formatted message as a string. Optional `unixfrom' when True, means include the Unix From_ envelope header.

This overrides the default as_string() implementation to not mangle lines that begin with 'From '. See bug #13433 for details.