diff options
author | Lukas Winkler <git@lw1.at> | 2020-08-14 01:02:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-14 01:02:59 +0300 |
commit | 4eab9d24b82b673cb4b64698ede651e8358267cc (patch) | |
tree | cdb51e83436aac8a260ce0736a2ae0f241a8cd66 /core | |
parent | 2c147b66d57ee19adcb2792e20b5bebb011111ef (diff) |
avoid triggering automated (vacation) responses (#16292)
Diffstat (limited to 'core')
-rw-r--r-- | core/Mail/Transport.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Mail/Transport.php b/core/Mail/Transport.php index 7eabb12ae7..7ac2fbf2e4 100644 --- a/core/Mail/Transport.php +++ b/core/Mail/Transport.php @@ -35,6 +35,8 @@ class Transport $phpMailer->CharSet = PHPMailer::CHARSET_UTF8; $phpMailer->Encoding = PHPMailer::ENCODING_QUOTED_PRINTABLE; $phpMailer->XMailer = ' '; + // avoid triggering automated (vacation) responses + $phpMailer->addCustomHeader('Auto-Submitted', 'yes'); $phpMailer->setLanguage(StaticContainer::get('Piwik\Translation\Translator')->getCurrentLanguage()); $this->initSmtpTransport($phpMailer); @@ -140,4 +142,4 @@ class Transport $phpMailer->Host = trim($mailConfig['host']); } -}
\ No newline at end of file +} |