From 334652d47ad4a59f698f12b6baa8617b49fba4f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 9 Apr 2021 10:43:57 +0200 Subject: [PATCH] Set X-Auto-Response-Suppress: OOF header on all mail I was not able to think of a case where out-of-office notifications would be desired in response to an email sent by WoltLab Suite, so onto all emails it goes. Resolves #4104 --- wcfsetup/install/files/lib/system/email/Email.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/lib/system/email/Email.class.php b/wcfsetup/install/files/lib/system/email/Email.class.php index aa457c5c2b..f7d6faf14f 100644 --- a/wcfsetup/install/files/lib/system/email/Email.class.php +++ b/wcfsetup/install/files/lib/system/email/Email.class.php @@ -551,6 +551,8 @@ class Email } $headers[] = ['mime-version', '1.0']; + $headers[] = ['x-auto-response-suppress', 'OOF']; + if (!$this->body) { throw new \LogicException("Cannot generate message headers, you must set a body."); } -- 2.20.1