Skip to content

Instantly share code, notes, and snippets.

@edavis10
Forked from igal/gist:59510
Created February 6, 2009 17:44
Show Gist options
  • Save edavis10/59519 to your computer and use it in GitHub Desktop.
Save edavis10/59519 to your computer and use it in GitHub Desktop.
### 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