Setting up email with Sendgrid in Heroku for a Django App
Within your settings.py include:
import osEMAIL_HOST_USER = os.environ['SENDGRID_USERNAME']EMAIL_HOST= 'smtp.sendgrid.net'EMAIL_PORT = 587EMAIL_USE_TLS = TrueEMAIL_HOST_PASSWORD = os.environ['SENDGRID_PASSWORD']
Edit: changed EMAIL_PASSWORD to EMAIL_HOST_PASSWORD as that's the correct spelling.