In this lesson you’re going to set up the email where you’ll receive notifications of new subscribers. We’re going to use Gmail for this project.
To begin, open up your settings.py file in Komodo. Under import os, space down to line 4 and insert the following…
EMAIL_USE_TLS = True
EMAIL_HOST = ’smtp.gmail.com’
EMAIL_HOST_USER = ‘firstname.lastname@example.org’
EMAIL_HOST_PASSWORD = ‘yourpassword’
EMAIL_PORT = 587