forked from friendica/friendica-addons
Merge pull request #1021 from nupplaphil/phpmailer_fix
[phpmailer] Fix case-sensitive check
This commit is contained in:
commit
8223b54d0b
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue