Thursday, March 22, 2012

python - How to send email via Django? - Stack Overflow

python - How to send email via Django? - Stack Overflow: "I use GMail as my SMTP server for django. Much easier than dealing with postfix or whatever other server. I'm not in the business of managing email servers.

In settings.py:

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'me@gmail.com'
EMAIL_HOST_PASSWORD = 'password'"

'via Blog this'