class documentation

class EmailBackend(ConsoleEmailBackend):

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method ​_get​_filename Return a unique file name.
Method close Close a network connection.
Method open Open a network connection.
Method write​_message Undocumented
Instance Variable ​_fname Undocumented
Instance Variable file​_path Undocumented
Instance Variable stream Undocumented

Inherited from EmailBackend:

Method send​_messages Write all messages to the stream in a thread-safe way.
Instance Variable ​_lock Undocumented

Inherited from BaseEmailBackend (via EmailBackend):

Method __enter__ Undocumented
Method __exit__ Undocumented
Instance Variable fail​_silently Undocumented
def __init__(self, *args, file_path=None, **kwargs):
def _get_filename(self):
Return a unique file name.
def close(self):
Close a network connection.
def open(self):

Open a network connection.

This method can be overwritten by backend implementations to open a network connection.

It's up to the backend implementation to track the status of a network connection if it's needed by the backend.

This method can be called by applications to force a single network connection to be used when sending mails. See the send_messages() method of the SMTP backend for a reference implementation.

The default implementation does nothing.

def write_message(self, message):
_fname =

Undocumented

file_path =

Undocumented