get_connection(backend=None, fail_silently=False, *args, **kwargs)
[source]
By default, a call to get_connection()
will return an instance of the email backend specified in EMAIL_BACKEND
. If you specify the backend
argument, an instance of that backend will be instantiated.
The fail_silently
argument controls how the backend should handle errors. If fail_silently
is True, exceptions during the email sending process will be silently ignored.
All other arguments are passed directly to the constructor of the email backend.
Django ships with several email sending backends. With the exception of the SMTP backend (which is the default), these backends are only useful during testing and development. If you have special email sending requirements, you can write your own email backend.
Please login to continue.