Some time back I set up a Ruby-onRails app with sendgrid and heroku. I followed a tutorial where I had to:
Fine. Or so I thought. Now I'm setting up a new app, and sendgrid has removed the "Credentials".
I have a gut feeling something is being created automatically for me, but how can I get my fingers on it and tie it together with my code? Are there some magic environment variable already available for me that I shall rather use in my code?
When I look at (the web) herokuapp > sendgrid add-on > Settings > Account details I see that there is a username and a password that is automatically generated, but how can I see what that auto-created password is so that I can get it into a heroku ENV variable?
Thanks for any help - I feel a bit lost here...
You do the same thing. Every app has its own add-ons. They are not shared. If you have a new app you have to repeat what you did with your previous app:
go to your resources page and add your sendgrid add-on.
This creates your credentials under Settings > Config Variables. There should be SENDGRID_USERNAME and SENDGRID_PASSWORD
Generate your API key on Sendgrid's site and then add it to your Config Variables (Settings > Config Variables).
Finally setup your SMTP settings in your Rails app and you are done.
https://devcenter.heroku.com/articles/sendgrid#provisioning-the-add-on
https://sendgrid.com/docs/Integrate/Frameworks/rubyonrails.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With