Created
May 7, 2015 19:34
-
-
Save prdanelli/76404ebacb88aced1cbf to your computer and use it in GitHub Desktop.
Get rails sending through mandrill
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#app/config/initializers/mailer.rb | |
ActionMailer::Base.smtp_settings = { | |
address: 'smtp.mandrillapp.com', | |
port: 587, | |
user_name: '<account email>', | |
password: '<api key>', | |
authentication: 'login' | |
} | |
ActionMailer::Base.delivery_method = :smtp | |
ActionMailer::Base.default charset: 'utf-8' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment