Fix phpmailer (Case sensitive Check)

pull/1021/head
Philipp 2020-09-22 22:48:34 +02:00
parent 2365a9ae02
commit 7fd4511a21
No known key found for this signature in database
GPG Key ID: 9A28B7D4FF5667BD
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ function phpmailer_emailer_send_prepare(App $a, IEmail &$email)
if (!empty($email->getAdditionalMailHeader())) { if (!empty($email->getAdditionalMailHeader())) {
foreach ($email->getAdditionalMailHeader() as $name => $values) { foreach ($email->getAdditionalMailHeader() as $name => $values) {
// Set the "Message-ID" header for PHP-Mailer directly // Set the "Message-ID" header for PHP-Mailer directly
if ($name == 'Message-Id') { if (strtolower($name) === 'message-id') {
// implode all values to one entry, because there's only one value possible // implode all values to one entry, because there's only one value possible
$mailer->MessageID = trim(implode("", $values)); $mailer->MessageID = trim(implode("", $values));
} else { } else {