Heroku, Django, and Sendgrid - emails not sending?
问题 So I'm using heroku and sendgrid and think I have my settings.py configured correctly: EMAIL_HOST_USER = os.environ['SENDGRID_USERNAME'] EMAIL_HOST= 'smtp.sendgrid.net' EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST_PASSWORD = os.environ['SENDGRID_PASSWORD'] I'm sending email using send_mail like this (using pre_save receiver to check if attribute has changed... also 'myemail@gmail.com' is replaced with my actual email): @receiver(pre_save,sender=LotteryEntry) def send_email_if_invited