Skip to main content

mail_managers

Send a message to the managers, as defined by the MANAGERS setting.

def mail_managers(
subject: string,
message: string,
fail_silently: boolean = False,
connection: object = None,
html_message: string = None,
using: string = None
) - > None

Send a message to the managers, as defined by the MANAGERS setting.

Parameters

NameTypeDescription
subjectstringThe subject line for the email message.
messagestringThe plain-text body of the email message.
fail_silentlyboolean = FalseIf True, suppresses exceptions raised during the email sending process.
connectionobject = NoneAn optional email backend instance to use for sending the message.
html_messagestring = NoneAn optional HTML-formatted version of the message body.
usingstring = NoneThe name of the email alias to use for sending the message.

Returns

TypeDescription
NoneReturns nothing; the function sends an email via the configured mail backend.