Class EmailBackend
A wrapper that manages the SMTP network connection.
Declaration
source linkDocumentation
Methods
▶ def __init__(self, host=None, port=None, username=None, password=None, use_tls=None, ...) override def __init__(
self,
host=None,
port=None,
username=None,
password=None,
use_tls=None,
fail_silently=False,
use_ssl=None,
timeout=None,
ssl_keyfile=None,
ssl_certfile=None,
**kwargs,
)
This method overrides django.core.mail.backends.base.BaseEmailBackend.__init__.
▶ def close(self) override Close the connection to the email server.
@property
def connection_class(self)
▶ def open(self) override Ensure an open connection to the email server. Return whether or not a new connection was required (True or False) or None if an exception passed silently.
▶ def send_messages(self, email_messages) override Send one or more EmailMessage objects and return the number of email messages sent.