about summary refs log tree commit diff
path: root/config/environments
diff options
context:
space:
mode:
authorHugo Gameiro <hmgameiro@gmail.com>2019-09-02 17:12:40 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-09-02 18:12:40 +0200
commit5466b39c78e0c97a9db6377eefa4c3ce44dc1514 (patch)
tree5fb8cfde5e75cfa10ba16a4758c384071b97d3df /config/environments
parent1f22b8197cb961371fa761e1fa214d4f4a2074d1 (diff)
Add SMTP reply_to option (#11718)
* Add SMTP_REPLY_TO in .env.production.sample

* Set reply_to in SMTP options
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/production.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index d1b5a8df5..29d6194dd 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -83,7 +83,10 @@ Rails.application.configure do
   config.action_mailer.perform_caching = false
 
   # E-mails
-  config.action_mailer.default_options = { from: ENV.fetch('SMTP_FROM_ADDRESS', 'notifications@localhost') }
+  config.action_mailer.default_options = {
+    from: ENV.fetch('SMTP_FROM_ADDRESS', 'notifications@localhost'),
+    reply_to: ENV['SMTP_REPLY_TO']
+  }
 
   config.action_mailer.smtp_settings = {
     :port                 => ENV['SMTP_PORT'],