]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fix errors in mailstream addon
authorArt4 <art4@wlabs.de>
Wed, 27 Nov 2024 11:52:59 +0000 (11:52 +0000)
committerArt4 <art4@wlabs.de>
Wed, 27 Nov 2024 11:52:59 +0000 (11:52 +0000)
mailstream/mailstream.php
mailstream/phpmailer/class.phpmailer.php

index ae57c4dd8c66dabb6ee0d65d141e19614cd7c999..9910a63dfbd50b8c12eb742213b53f21bd07e5ca 100644 (file)
@@ -378,7 +378,7 @@ function mailstream_send(string $message_id, array $item, array $user): bool
        if (!$address) {
                $address = $user['email'];
        }
-       $mail = new PHPmailer();
+       $mail = new PHPMailer();
        try {
                $mail->XMailer = 'Friendica Mailstream Addon';
                $mail->SetFrom($frommail, mailstream_sender($item));
index ab7fe030588c6406728c1476240a07a1da554c3f..a47b13f70097d20afc54c49b350122981dfa9f7c 100644 (file)
@@ -1519,6 +1519,7 @@ class PHPMailer
     public function getSMTPInstance()
     {
         if (!is_object($this->smtp)) {
+            /** @phpstan-ignore-next-line file class.smtp.php does not exist */
             $this->smtp = new SMTP;
         }
         return $this->smtp;
@@ -2705,7 +2706,7 @@ class PHPMailer
             $file_buffer = $this->encodeString($file_buffer, $encoding);
             if ($magic_quotes) {
                 if (version_compare(PHP_VERSION, '5.3.0', '<')) {
-                    set_magic_quotes_runtime($magic_quotes);
+                    //set_magic_quotes_runtime($magic_quotes);
                 } else {
                     ini_set('magic_quotes_runtime', $magic_quotes);
                 }