aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorLuc Donnet2015-02-12 11:17:31 +0100
committerLuc Donnet2015-02-12 11:17:31 +0100
commit3bd447b9ea27eb294acb2cc12bb30a90d08f1316 (patch)
tree2d7656730c00db1e50a6e293680466bcd3f319c4 /config
parent7d984efe77efd8e610c91fcefc35c4a3e17412fd (diff)
downloadchouette-core-3bd447b9ea27eb294acb2cc12bb30a90d08f1316.tar.bz2
Update development configuration to send mail on linux platform
Diffstat (limited to 'config')
-rw-r--r--config/environments/development.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 0d33ac03c..217b485be 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -40,6 +40,12 @@ ChouetteIhm::Application.configure do
config.active_record.auto_explain_threshold_in_seconds = (RUBY_PLATFORM == "java" ? nil : 0.5)
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
+
+ config.action_mailer.delivery_method = :sendmail
+ # change to true to allow email to be sent during development
+ config.action_mailer.perform_deliveries = true
+ config.action_mailer.raise_delivery_errors = true
+ config.action_mailer.default :charset => "utf-8"
# replace this with your production tracker code
GA.tracker = "UA-AAAAAAAA"
@@ -66,14 +72,9 @@ ChouetteIhm::Application.configure do
# link to validation specification pages
config.validation_spec = "http://www.chouette.mobi/neptune-validation/v20/"
- # Configure the e-mail address which will be shown in Devise::Maile
+ # Configure the e-mail address which will be shown in Devise::Mailer
config.mailer_sender = "appli@chouette.mobi"
- ActionMailer::Base.smtp_settings = {
- :address => "smtp.samle.com",
- :domain => "sample.com"
- }
-
# api key to geoportail IGN (development key 3 month validity)
# config.geoportail_api_key = "f1t6wihbh98njlbaf5cuzxy4"