Changeset 6393
- Timestamp:
- 09/20/07 02:19:10 (1 year ago)
- Files:
-
- django/trunk/docs/email.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/email.txt
r6392 r6393 101 101 102 102 ``django.core.mail.mail_admins()`` is a shortcut for sending an e-mail to the 103 site admins, as defined in the `ADMINS setting`_. Here's the definition::103 site admins, as defined in the `ADMINS`_ setting. Here's the definition:: 104 104 105 105 mail_admins(subject, message, fail_silently=False) 106 106 107 107 ``mail_admins()`` prefixes the subject with the value of the 108 `EMAIL_SUBJECT_PREFIX setting`_, which is ``"[Django] "`` by default.109 110 The "From:" header of the e-mail will be the value of the `SERVER_EMAIL setting`_.108 `EMAIL_SUBJECT_PREFIX`_ setting, which is ``"[Django] "`` by default. 109 110 The "From:" header of the e-mail will be the value of the `SERVER_EMAIL`_ setting. 111 111 112 112 This method exists for convenience and readability. 113 113 114 .. _ADMINS setting: ../settings/#admins115 .. _EMAIL_SUBJECT_PREFIX setting: ../settings/#email-subject-prefix116 .. _SERVER_EMAIL setting: ../settings/#server-email114 .. _ADMINS: ../settings/#admins 115 .. _EMAIL_SUBJECT_PREFIX: ../settings/#email-subject-prefix 116 .. _SERVER_EMAIL: ../settings/#server-email 117 117 118 118 mail_managers() function … … 120 120 121 121 ``django.core.mail.mail_managers()`` is just like ``mail_admins()``, except it 122 sends an e-mail to the site managers, as defined in the `MANAGERS setting`_.122 sends an e-mail to the site managers, as defined in the `MANAGERS`_ setting. 123 123 Here's the definition:: 124 124 125 125 mail_managers(subject, message, fail_silently=False) 126 126 127 .. _MANAGERS setting: ../settings/#managers127 .. _MANAGERS: ../settings/#managers 128 128 129 129 Examples
