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:
Patrick Gansterer 2017-08-18 00:03:25 +02:00
parent 639a99fcfb
commit 96a01daa34

View file

@ -9,7 +9,8 @@ class Mailer < ActionMailer::Base
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.
# Assumes user.setResetPasswordToken has been successfully called already.