Skip to content

Instantly share code, notes, and snippets.

@prdanelli
Created May 7, 2015 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prdanelli/76404ebacb88aced1cbf to your computer and use it in GitHub Desktop.
Save prdanelli/76404ebacb88aced1cbf to your computer and use it in GitHub Desktop.
Get rails sending through mandrill
#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