Set the X-Auto-Response-Suppress header for all outgoing mails
Since Foodsoft can not forward any auto responses to the relevant users it makes sense to tell MTAs to avoid them at all.
This commit is contained in:
parent
639a99fcfb
commit
96a01daa34
1 changed files with 4 additions and 3 deletions
|
@ -9,7 +9,8 @@ class Mailer < ActionMailer::Base
|
||||||
|
|
||||||
layout 'email' # Use views/layouts/email.txt.erb
|
layout 'email' # Use views/layouts/email.txt.erb
|
||||||
|
|
||||||
default from: "#{I18n.t('layouts.foodsoft')} <#{FoodsoftConfig[:email_sender]}>"
|
default from: "#{I18n.t('layouts.foodsoft')} <#{FoodsoftConfig[:email_sender]}>",
|
||||||
|
'X-Auto-Response-Suppress' => 'All'
|
||||||
|
|
||||||
# Sends an email with instructions on how to reset the password.
|
# Sends an email with instructions on how to reset the password.
|
||||||
# Assumes user.setResetPasswordToken has been successfully called already.
|
# Assumes user.setResetPasswordToken has been successfully called already.
|
||||||
|
|
Loading…
Reference in a new issue