Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorLukas Winkler <git@lw1.at>2020-08-14 01:02:59 +0300
committerGitHub <noreply@github.com>2020-08-14 01:02:59 +0300
commit4eab9d24b82b673cb4b64698ede651e8358267cc (patch)
treecdb51e83436aac8a260ce0736a2ae0f241a8cd66 /core
parent2c147b66d57ee19adcb2792e20b5bebb011111ef (diff)
avoid triggering automated (vacation) responses (#16292)
Diffstat (limited to 'core')
-rw-r--r--core/Mail/Transport.php4
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
+}