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