To send an e-mail through django's SMTP server you just have to define a few variables in your settings.py
You can test to make sure your settings work properly by loading up the python interpreter:
If you define a wrong EMAIL_HOST like 'gmail.com' instead of 'smtp.gmail.com' email.send() will just sit there and churn and not give you a response back.
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'user@gmail.com'
EMAIL_HOST_PASSWORD = 'pw'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
You can test to make sure your settings work properly by loading up the python interpreter:
$> ./manage.py shell
from django.core.mail import EmailMessage
email = EmailMessage('Subject', 'Body', to=['user@gmail.com'])
email.send()
If you define a wrong EMAIL_HOST like 'gmail.com' instead of 'smtp.gmail.com' email.send() will just sit there and churn and not give you a response back.