[Answer]-Django. Sending email with an application

1👍

In settings.py, you have to add these liner:

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'xxxxxxxxxxx@gmail.com'
EMAIL_HOST_PASSWORD = 'xxxxxxxxxxxxxx'
EMAIL_PORT = 587    #or try with 25

0👍

https://docs.djangoproject.com/en/1.7/topics/email/

be sure to name your EMAIL variables and .gitignore your settings file

👤jsiker

Leave a comment