]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fix phpmailer (Case sensitive Check)
authorPhilipp <admin@philipp.info>
Tue, 22 Sep 2020 20:48:34 +0000 (22:48 +0200)
committerPhilipp <admin@philipp.info>
Tue, 22 Sep 2020 20:48:34 +0000 (22:48 +0200)
phpmailer/phpmailer.php

index 5b43c8f19b00518bb792eb962919b1f8571fbb32..3f6f5f5f4e51b0067ea46ce729ae425872f9a089 100644 (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 {