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 7768913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:02:40+00:00 2026-06-01T16:02:40+00:00

I setup send grid starter for my heroku app. I put this in my

  • 0

I setup send grid starter for my heroku app.

I put this in my config/environment.rb:

ActionMailer::Base.smtp_settings = {
  :user_name => ENV["SENDGRID_USERNAME"],
  :password => ENV["SENDGRID_PASSWORD"],
  :domain => "my-sites-domain.com",
  :address => "smtp.sendgrid.net",
  :port => 587,
  :authentication => :plain,
  :enable_starttls_auto => true
}

I create this class models/notifier.rb:

class Notifier < ActionMailer::Base

  def notify()
    mail( 
      :to => "my-email@gmail.com",
      :subject => "New Website Contact",
      :body => "body",
      :message => "message",
      :from => "website@my-sites-domain.com"
    )
  end

end

I put this in another controller to send the email:

def contact
  Notifier.notify().deliver
  redirect_to("/", :notice => "We Have Received Your Request And Will Contact You Soon.")
end

When I deploy and try to send an email I get this error:

Net::SMTPAuthenticationError (535 Authentication failed: Bad username / password

I have setup send grid completely and it says I am ready to send emails.

I also ran heroku config --long to get the actual password and user name and hard coded them and that still gave me the same error.

  • 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-06-01T16:02:42+00:00Added an answer on June 1, 2026 at 4:02 pm

    I had tried to set my password with the command:

    heroku config:add SENDGRID_PASSWORD=my-new-password
    

    But it turns out this only changes what heroku has stored as your password, it doesn’t actually change your password. You also cannot retrieve your password after doing this.

    What I had to do was remove and re-add the sendgrid add on.

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

Sidebar

Related Questions

So, I have the setup like this (in Express): app.get('/mycall1', function(req,res) { res.send('Good'); });
I've got my Rails (2.1) app setup to send email via Gmail, however whenever
As most production environments we have setup something to send us a notification if
I need to setup an open source SMS gateway to send messages using my
I'm trying to setup an email form to send feedback from my website, here
We've setup some different load tests and need to generate/send the result pr. e-mail,
The described setup with 2nd monitor to left of primary causes WM_NCHITTEST to send
I am trying to send database mail when error occurs inside the transaction.My setup
I'ld like to send an email with the following setup def registration_confirmation(user) recipients user.username
I am looking to setup testing & staging environments. We have many config parameters

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.