Browse Source

Merge pull request #1021 from nupplaphil/phpmailer_fix

[phpmailer] Fix case-sensitive check
pull/1022/head
Hypolite Petovan 9 months ago
committed by GitHub
parent
commit
8223b54d0b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      phpmailer/phpmailer.php

+ 1
- 1
phpmailer/phpmailer.php View File

@ -92,7 +92,7 @@ function phpmailer_emailer_send_prepare(App $a, IEmail &$email)
if (!empty($email->getAdditionalMailHeader())) {
foreach ($email->getAdditionalMailHeader() as $name => $values) {
// 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
$mailer->MessageID = trim(implode("", $values));
} else {


Loading…
Cancel
Save