4 ms·
This was a Heroku win for us. I just visited their add-ons page, identified a comparable provider, and restored mail in our application with the following:
by aculver 14y ago
This was a Heroku win for us. I just visited their add-ons page, identified a comparable provider, and restored mail in our application with the following:
heroku addons:add mailgun:basic
heroku addons:docs mailgun:basic
vim config/initializers/mail.rb
git add config/initializers/mail.rb
git commit -m "Switching to back-up mail provider."
git push heroku master
Since the account creation is all automatic and billing is all through Heroku, I never even had to visit Mailgun's website.
- adambenayoun 14y agoHow do you handle SPF/DKIM and domain keys records? Do you send out a lot of emails? Have you had a mailgun account ready?
- aculver 14y agoI don't know anything about this. If someone could provide some details/resources around this I'm sure it would be valuable to folks right now who need to evaluate the risks of switching providers on a short-term basis. (For us in particular, SendGrid only represents a small amount of the email we send and it's mostly internal emails. The problem for us was that the ActionMailer emails aren't sent in a background process, so this caused a couple request timeouts.)
- swampthing 14y agoIf memory serves, if you can log into Mailgun, it will have some text on how to set up all those things on your dashboard. Congrats on switching - Mailgun has vastly superior deliverability, at least in my observation.
- adambenayoun 14y agoI'd love to hear why you think mailgun is more superior than sendgrid. I'm currently using sendgrid.
- swampthing 14y agoWe started off using Sendgrid too but found that our emails were often ending up flagged as spam, even though we had the SPF records and all that jazz. I should note that our emails were not spammy at all. Switched to Mailgun and haven't had any issues since. I have also noticed that false positives from other startups in my own spam folder are often sent through Sendgrid (though I suppose that's not dispositive since it could just be that more startups use Sendgrid).