cirandas.net

ref: master

config/initializers/mailgun.rb


1
2
3
4
5
6
7
8
9
if ENV['MAILGUN_TOKEN'].present?
  # Use with mailgun-ruby or mailgun_rails gem

  ActionMailer::Base.delivery_method  = :mailgun
  ActionMailer::Base.mailgun_settings = {
    api_key: ENV['MAILGUN_TOKEN'],
    domain:  ENV['MAILGUN_DOMAIN'],
  }
end