class documentation
class EmailBackend(ConsoleEmailBackend): (source)
Undocumented
Method | __init__ |
Undocumented |
Method | close |
Close a network connection. |
Method | open |
Open a network connection. |
Method | write |
Undocumented |
Instance Variable | file |
Undocumented |
Instance Variable | stream |
Undocumented |
Method | _get |
Return a unique file name. |
Instance Variable | _fname |
Undocumented |
Inherited from EmailBackend
:
Method | send |
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 |
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.