diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-09-10 04:31:48 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-09 21:31:48 +0200 |
commit | 3f333a8d313add2bf4eb8b5cdb2cd9eacc71b50c (patch) | |
tree | 4b64adab30398e3195f0a5e047309a0f4a96b462 /config/environments/production.rb | |
parent | bc077018b8b9212aa903af035bfc8bcf529e8c68 (diff) |
Set fallback address when empty notification address (#4868)
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r-- | config/environments/production.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index f1351e37822..397ea48dac7 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -73,7 +73,7 @@ Rails.application.configure do config.action_mailer.perform_caching = false # E-mails - config.action_mailer.default_options = { from: ENV.fetch('SMTP_FROM_ADDRESS') } + config.action_mailer.default_options = { from: ENV.fetch('SMTP_FROM_ADDRESS', 'notifications@localhost') } config.action_mailer.smtp_settings = { :port => ENV['SMTP_PORT'], |