Set fallback address when empty notification address (#4868)

lolsob-rspec
Yamagishi Kazutoshi 2017-09-10 04:31:48 +09:00 committed by Eugen Rochko
parent 899e7ad811
commit 4c0a563c0c
1 changed files with 1 additions and 1 deletions

View File

@ -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'],