Skip to content
Snippets Groups Projects
Commit 5466b39c authored by Hugo Gameiro's avatar Hugo Gameiro Committed by Eugen Rochko
Browse files

Add SMTP reply_to option (#11718)

* Add SMTP_REPLY_TO in .env.production.sample

* Set reply_to in SMTP options
parent 1f22b819
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,7 @@ SMTP_PORT=587
SMTP_LOGIN=
SMTP_PASSWORD=
SMTP_FROM_ADDRESS=notifications@example.com
#SMTP_REPLY_TO=
#SMTP_DOMAIN= # defaults to LOCAL_DOMAIN
#SMTP_DELIVERY_METHOD=smtp # delivery method can also be sendmail
#SMTP_AUTH_METHOD=plain
......
......@@ -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'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment