Tools for sending email.
Package | backends |
No package docstring; 6/6 modules documented |
Module | message |
No module docstring; 0/2 variable, 0/2 constant, 1/1 function, 0/2 class documented |
Module | utils |
Email message and email sending related helper functions. |
From __init__.py
:
Class |
|
Undocumented |
Class |
|
A container for email information. |
Class |
|
A version of EmailMessage that makes it easy to send multipart/alternative messages. For example, including text and HTML versions of the text is made easier. |
Class |
|
Undocumented |
Class |
|
Undocumented |
Exception |
|
Undocumented |
Function | forbid |
Forbid multi-line headers to prevent header injection. |
Function | get |
Load an email backend and return an instance of it. |
Function | mail |
Send a message to the admins, as defined by the ADMINS setting. |
Function | mail |
Send a message to the managers, as defined by the MANAGERS setting. |
Function | send |
Easy wrapper for sending a single message to a recipient list. All members of the recipient list will see the other recipients in the 'To' field. |
Function | send |
Given a datatuple of (subject, message, from_email, recipient_list), send each message to each recipient list. Return the number of emails sent. |
Constant | DEFAULT |
Undocumented |
Constant | DNS |
Undocumented |
Load an email backend and return an instance of it. If backend is None (default), use settings.EMAIL_BACKEND. Both fail_silently and other keyword arguments are used in the constructor of the backend.
Easy wrapper for sending a single message to a recipient list. All members of the recipient list will see the other recipients in the 'To' field. If from_email is None, use the DEFAULT_FROM_EMAIL setting. If auth_user is None, use the EMAIL_HOST_USER setting. If auth_password is None, use the EMAIL_HOST_PASSWORD setting. Note: The API for this method is frozen. New code wanting to extend the functionality should use the EmailMessage class directly.
Given a datatuple of (subject, message, from_email, recipient_list), send each message to each recipient list. Return the number of emails sent. If from_email is None, use the DEFAULT_FROM_EMAIL setting. If auth_user and auth_password are set, use them to log in. If auth_user is None, use the EMAIL_HOST_USER setting. If auth_password is None, use the EMAIL_HOST_PASSWORD setting. Note: The API for this method is frozen. New code wanting to extend the functionality should use the EmailMessage class directly.