-
-
Save edavis10/59519 to your computer and use it in GitHub Desktop.
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
### Mailer configuration from config/environments/production.rb | |
# Documnentation: | |
# * http://wiki.rubyonrails.com/rails/pages/HowToSendEmailsWithActionMailer | |
# * http://api.rubyonrails.org/classes/ActionMailer/Base.html | |
# Let MTA handle deliveries asynchronously, rather than using default synchronous SMTP | |
config.action_mailer.delivery_method = :sendmail | |
# Let MTA handle errors, do not raise exceptions | |
config.action_mailer.raise_delivery_errors = false | |
# Log email content to a separate file | |
config.action_mailer.logger = ActiveSupport::BufferedLogger.new("#{RAILS_ROOT}/log/#{RAILS_ENV}.mail.log") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment