mail_admins
Send a message to the admins, as defined by the ADMINS setting.
def mail_admins(
subject: string,
message: string,
fail_silently: boolean = False,
connection: object = None,
html_message: string = None,
using: string = None
) - > None
Send a message to the admins, as defined by the ADMINS setting.
Parameters
| Name | Type | Description |
|---|---|---|
| subject | string | The subject line of the email message. |
| message | string | The plain-text content of the email message. |
| fail_silently | boolean = False | Whether to suppress exceptions raised during the email sending process. |
| connection | object = None | An optional backend instance to use for sending the email. |
| html_message | string = None | An optional HTML version of the message for multipart emails. |
| using | string = None | The name of the email backend alias to use for sending. |
Returns
| Type | Description |
|---|---|
None | Returns nothing; sends an email as a side effect. |