mail_admins(subject, message, fail_silently=False, connection=None, html_message=None)
[source]
django.core.mail.mail_admins()
is a shortcut for sending an email to the site admins, as defined in the ADMINS
setting.
mail_admins()
prefixes the subject with the value of the EMAIL_SUBJECT_PREFIX
setting, which is "[Django] "
by default.
The “From:” header of the email will be the value of the SERVER_EMAIL
setting.
This method exists for convenience and readability.
If html_message
is provided, the resulting email will be a multipart/alternative email with message
as the text/plain content type and html_message
as the text/html content type.
Please login to continue.