class EmailBackend(ConsoleEmailBackend):
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 |
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.