From 6ea36eff7389e4e6d2dbc358bf6af0c6966d4ae9 Mon Sep 17 00:00:00 2001 From: hukl Date: Mon, 16 Nov 2009 18:05:22 +0100 Subject: added action mailer config for production environment --- config/environments/production.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/environments/production.rb b/config/environments/production.rb index 1fc9f6b..68ceccd 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -24,4 +24,12 @@ config.action_controller.perform_caching = true # config.action_mailer.raise_delivery_errors = false # Enable threaded mode -# config.threadsafe! \ No newline at end of file +# config.threadsafe! + +ActionMailer::Base.delivery_method = :sendmail +ActionMailer::Base.sendmail_settings = { + :location => '/usr/sbin/sendmail', + :arguments => '-i -t' +} +ActionMailer::Base.perform_deliveries = true +ActionMailer::Base.raise_delivery_errors = true \ No newline at end of file -- cgit v1.3