Explorar el Código

Set fallback address when empty notification address (#4868)

Yamagishi Kazutoshi hace 6 años
padre
commit
3f333a8d31
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      config/environments/production.rb

+ 1 - 1
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'],