Created
September 12, 2014 09:13
-
-
Save toxin20/3164e5acee74bedd8da8 to your computer and use it in GitHub Desktop.
Mailer Settings
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
ActionMailer::Base.default :from => ENV['MAIL_FROM'] | |
config.action_mailer.asset_host = ENV['DEFAULT_URL'] | |
# Ignore bad email addresses and do not raise email delivery errors. | |
# Set this to true and configure the email server for immediate delivery to raise delivery errors. | |
# config.action_mailer.raise_delivery_errors = false | |
config.action_mailer.default_url_options = { :host => ENV['DEFAULT_URL'] } | |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.smtp_settings = { | |
:address => ENV['SMTP_ADDRESS'], | |
:port => ENV['SMTP_PORT'], # ports 587 and 2525 are also supported with STARTTLS | |
:enable_starttls_auto => true, # detects and uses STARTTLS | |
:user_name => ENV['MANDRILL_USERNAME'], | |
:password => ENV['MANDRILL_PASSWORD'], # SMTP password is any valid API key | |
:authentication => 'login', # Mandrill supports 'plain' or 'login' | |
:domain => ENV['MANDRILL_DOMAIN'], # your domain to identify your server when connecting | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment