Skip to content

Instantly share code, notes, and snippets.

@beneggett
Last active December 15, 2015 19:39
Show Gist options
  • Save beneggett/5312982 to your computer and use it in GitHub Desktop.
Save beneggett/5312982 to your computer and use it in GitHub Desktop.
# Letter opener config:
# https://github.com/ryanb/letter_opener
...
# Change mail delvery to either :smtp, :sendmail, :file, :test
config.action_mailer.delivery_method = :letter_opener
....
## Mandrill settings:
...
# ActionMailer Config
# Setup for production - deliveries, no errors raised
config.action_mailer.default_url_options = { :host => 'www.example.com' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = false
config.action_mailer.default :charset => "utf-8"
config.action_mailer.smtp_settings = {
:address => 'smtp.mandrillapp.com',
:port => '587',
:user_name => ENV['MANDRILL_USERNAME'],
:password => ENV['MANDRILL_API_KEY']
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment