diff --git a/config/app_config.yml.example b/config/app_config.yml.example index a52ca2165..832f928c9 100644 --- a/config/app_config.yml.example +++ b/config/app_config.yml.example @@ -18,6 +18,7 @@ default: smtp_port: '587' smtp_domain: 'mail.example.com' smtp_authentication: 'plain' + smtp_sender_address: 'no-reply@example.com' smtp_username: 'no-reply@example.com' smtp_password: 'secret' diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 6fb026335..36947d9b3 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -6,7 +6,7 @@ # four configuration values can also be set straight in your models. Devise.setup do |config| # Configure the e-mail address which will be shown in DeviseMailer. - config.mailer_sender = "please-change-me@config-initializers-devise.com" + config.mailer_sender = APP_CONFIG[:smtp_sender_address] # ==> ORM configuration # Load and configure the ORM. Supports :active_record (default), :mongoid