From 4720c272bd83204faf46196c38a03c02e6af0285 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Thu, 30 Oct 2014 14:31:51 +0100 Subject: [PATCH] mails --- config/environments/production.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 69fea20..1793b39 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -93,7 +93,12 @@ Survey::Application.configure do config.action_mailer.default_url_options = { :host => "lepicvert.org" } - config.action_mailer.delivery_method = :sendmail + config.action_mailer.delivery_method = :smtp + config.action_mailer.smtp_settings = { + :address => "localhost", + :port => 25 + } + # Log the query plan for queries taking more than this (works # with SQLite, MySQL, and PostgreSQL)