aboutsummaryrefslogtreecommitdiffstats
path: root/config/environments
diff options
context:
space:
mode:
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/development.rb3
-rw-r--r--config/environments/test.rb3
2 files changed, 3 insertions, 3 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 0b4eab7d2..f59a34a23 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -37,8 +37,9 @@ Rails.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.default_options = { from: 'Stif BOIV <stif-boiv@af83.com>' }
+ config.action_mailer.delivery_method = :letter_opener
- config.action_mailer.delivery_method = :letter_opener
# change to true to allow email to be sent during development
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 80ed940ca..a6db12006 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -30,6 +30,7 @@ Rails.application.configure do
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
+ config.action_mailer.default_options = { from: 'Stif BOIV <stif-boiv@af83.com>' }
# Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr
@@ -71,8 +72,6 @@ Rails.application.configure do
# Configure the e-mail address which will be shown in Devise::Maile
config.mailer_sender = "appli@chouette.mobi"
-
- config.action_mailer.delivery_method = :sendmail
# change to true to allow email to be sent during development
config.action_mailer.perform_deliveries = false
config.action_mailer.raise_delivery_errors = false