Return to Snippet

Revision: 22619
at January 17, 2010 07:09 by martin_rusev


Initial Code
In settings.py 

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'yourpassword'
EMAIL_PORT = 587

You can use the shell to test it:

>>> from django.core.mail import send_mail
>>> send_mail('Test', 'This is a test', '[email protected]', ['[email protected]'])

Initial URL

                                

Initial Description

                                

Initial Title
Django send email through Gmail

Initial Tags
email, django

Initial Language
Django