Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7639243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:22:11+00:00 2026-05-31T08:22:11+00:00

I am deploying a Django app on Heroku, and using the Sendgrid addon to

  • 0

I am deploying a Django app on Heroku, and using the Sendgrid addon to send out validation email when a user registers on the site.

I followed the instructions here and pasted the following into settings.py:

EMAIL_HOST = 'smtp.sendgrid.net'
EMAIL_HOST_USER = 'sendgrid_username'
EMAIL_HOST_PASSWORD = 'sendgrid_password'
EMAIL_PORT = 587
EMAIL_USE_TLS = True

However, my app is crashing after registration.

What exactly am I supposed to put for EMAIL_HOST_USER and EMAIL_HOST_PASSWORD?

Under the developer’s tab in the sendgrid addon in heroku, it gives me the username app*******@heroku.com, and for password it just says “Your Password”. Is the password my Heroku password?

Also, do I need to include DEFAULT_FROM_EMAIL in my settings.py file? And where do I tell Sendgrid what it is?

EDIT: I’ve set DEBUG = True, and it looks like the error is:

SMTPSenderRefused

(550, 'Cannot receive from specified address <info@myapp.com>: Unauthenticated senders not allowed', 'info@myapp.com')

it looks like the problem is happening before Sendgrid does its thing. Do I need to authenticate the email address with Heroku somehow?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:22:12+00:00Added an answer on May 31, 2026 at 8:22 am

    Within your settings.py include:

    import os
    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']
    

    Edit: changed EMAIL_PASSWORD to EMAIL_HOST_PASSWORD as that’s the correct spelling.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm deploying my Django app to another host/server using mod_wsgi and MySQLdb. Right now,
When deploying a clojure app to Heroku, I see it is using cached Leiningen
Im having problems deploying my django app to heroku in the first part, heroku's
I'm running Django 1.0 and I'm close to deploying my app. As such, I'll
Aside from not deploying a Django project to the web site root directory, is
I'm having trouble getting django-social-auth to work with a Django app that I'm deploying
im experiencing this problem when deploying my django application to heroku , it says
I'm deploying my django app with nginx-uwsgi I wanna add Varnish to this stack.
The other person on my dev team has been deploying our Django app to
I'm trying to get a Django app running with Lighttpd. I followed the directions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.