Skip to content

Instantly share code, notes, and snippets.

@chap
Last active December 11, 2015 01:48
Show Gist options
  • Save chap/4525651 to your computer and use it in GitHub Desktop.
Save chap/4525651 to your computer and use it in GitHub Desktop.
Staging Mail Add-on Initializer
unless Rails.env.production?
ActionMailer::Base.smtp_settings = {
:address => 'smtp.stagingmail.com',
:port => '10587',
:authentication => :plain,
:user_name => ENV['STAGINGMAIL_API_KEY'],
:password => ENV['STAGINGMAIL_API_PASSWORD'],
:enable_starttls_auto => true
}
ActionMailer::Base.delivery_method = :smtp
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment