Add SMTP reply_to option (#11718)
* Add SMTP_REPLY_TO in .env.production.sample * Set reply_to in SMTP options
This commit is contained in:
parent
1f22b8197c
commit
5466b39c78
2 changed files with 5 additions and 1 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue