0

Trying to send mail with Mailgun as default.

Successfully connects to heroku telnet smtp.mailgun.org with ports 25 587 (TLS) and 465 (SSL)

The config for smtp is setup like the documentation wants. The environment variables were generated by Mailgun/Heroku and I updated the domain per the documentation to the mx record change.

Rails.application.config.action_mailer.delivery_method = :mailgun
Rails.application.config.action_mailer.mailgun_settings = {
  api_key: ENV['MAILGUN_API_KEY'],
  domain: ENV['MAILGUN_DOMAIN'],
}

I know I've seen this error on a few threads, but I've yet to make this work.

I'll reply if I find another thread that solves this before this one figures it out.

  • This is the closest answer: http://stackoverflow.com/questions/37534567/verified-email-not-sending-through-heroku-mailgun — still hasn't solved for me. – Christopher Smith Apr 06 '17 at 19:05

1 Answers1

0

This has been figured out. Here was my issue:

The configuration settings should go in environments/production.rb and environments/development.rb

NOT in a mailgun.rb initializer.

Thanks for playing. Woo.