Changeset 2761
- Timestamp:
- 04/27/06 23:19:50 (2 years ago)
- Files:
-
- django/branches/magic-removal/docs/email.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/docs/email.txt
r2744 r2761 21 21 ['to@example.com'], fail_silently=False) 22 22 23 The send_mail function 24 =========== ===========23 send_mail() 24 =========== 25 25 26 26 The simplest way to send e-mail is using the function 27 ``django.core.mail.send_mail ``. Here's its definition::27 ``django.core.mail.send_mail()``. Here's its definition:: 28 28 29 29 send_mail(subject, message, from_email, recipient_list, … … 52 52 .. _smtplib docs: http://www.python.org/doc/current/lib/module-smtplib.html 53 53 54 The send_mass_mail function 55 ================ ===========54 send_mass_mail() 55 ================ 56 56 57 ``django.core.mail.send_mass_mail `` is intended to handle mass e-mailing.57 ``django.core.mail.send_mass_mail()`` is intended to handle mass e-mailing. 58 58 Here's the definition:: 59 59 … … 72 72 the other addresses in the e-mail messages's "To:" field. 73 73 74 send_mass_mail vs. send_mail75 ---------------------------- 74 send_mass_mail() vs. send_mail() 75 -------------------------------- 76 76 77 77 The main difference between ``send_mass_mail()`` and ``send_mail()`` is that … … 80 80 This makes ``send_mass_mail()`` slightly more efficient. 81 81 82 The mail_admins function 83 ============= ===========82 mail_admins() 83 ============= 84 84 85 ``django.core.mail.mail_admins `` is a shortcut for sending an e-mail to the85 ``django.core.mail.mail_admins()`` is a shortcut for sending an e-mail to the 86 86 site admins, as defined in the `ADMINS setting`_. Here's the definition:: 87 87 … … 93 93 The "From:" header of the e-mail will be the value of the `SERVER_EMAIL setting`_. 94 94 95 This method exists for convenience and readability. 96 95 97 .. _ADMINS setting: http://www.djangoproject.com/documentation/settings/#admins 96 98 .. _EMAIL_SUBJECT_PREFIX setting: http://www.djangoproject.com/documentation/settings/#email-subject-prefix 97 99 .. _SERVER_EMAIL setting: http://www.djangoproject.com/documentation/settings/#server-email 98 100 99 The mail_managersfunction100 ======================== ==101 mail_managers() function 102 ======================== 101 103 102 ``django.core.mail.mail_managers `` is just like ``mail_admins``, except it104 ``django.core.mail.mail_managers()`` is just like ``mail_admins()``, except it 103 105 sends an e-mail to the site managers, as defined in the `MANAGERS setting`_. 104 106 Here's the definition::
