Skip to content

Instantly share code, notes, and snippets.

@igal
Created February 6, 2009 17:25
Show Gist options
  • Save igal/59510 to your computer and use it in GitHub Desktop.
Save igal/59510 to your computer and use it in GitHub Desktop.
Rails mailer configuration
### 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