Django

Code

Changeset 5111

Show
Ignore:
Timestamp:
04/27/07 09:25:05 (1 year ago)
Author:
mtredinnick
Message:

Fixed #4163 -- Added some "quick notes" documentation about the configuration
variables required to send email. Thanks, Karen Tracey.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/email.txt

    r4574 r5111  
    2020    send_mail('Subject here', 'Here is the message.', 'from@example.com', 
    2121        ['to@example.com'], fail_silently=False) 
    22          
     22 
     23Mail will be sent using the SMTP host and port specified in the `EMAIL_HOST`_ 
     24and `EMAIL_PORT`_ settings.  The `EMAIL_HOST_USER`_ and `EMAIL_HOST_PASSWORD`_ 
     25settings, if set, will be used to authenticate to the 
     26SMTP server. 
     27 
    2328.. note:: 
    2429 
    2530    The character set of email sent with ``django.core.mail`` will be set to 
    2631    the value of your `DEFAULT_CHARSET setting`_. 
    27      
     32 
    2833.. _DEFAULT_CHARSET setting: ../settings/#DEFAULT_CHARSET 
     34.. _EMAIL_HOST: ../settings/#EMAIL_HOST 
     35.. _EMAIL_PORT: ../settings/#EMAIL_PORT 
     36.. _EMAIL_HOST_USER: ../settings/#EMAIL_HOST_USER 
     37.. _EMAIL_HOST_PASSWORD: ../settings/#EMAIL_HOST_PASSWORD 
     38 
    2939 
    3040send_mail() 
  • django/trunk/docs/settings.txt

    r5093 r5111  
    396396Default: ``''`` (Empty string) 
    397397 
    398 Username to use for the SMTP server defined in ``EMAIL_HOST``. If empty, 
    399 Django won't attempt authentication. 
     398Password to use for the SMTP server defined in ``EMAIL_HOST``. This setting is 
     399used in conjunction with EMAIL_HOST_USER when authenticating to the SMTP server. 
     400If either of these settings is empty, Django won't attempt authenticaion. 
    400401 
    401402See also ``EMAIL_HOST_USER``.