Menu

#5 Errors using PHP 8.2

1.0
closed
PHP 8.2 (1)
2024-03-22
2024-02-28
HBrockmann
No

Trying to use PHPMailerPro with PHP 8.2 throws following errors:

Deprecated: Creation of dynamic property codeworxtech\PHPMailerPro\PHPMailerPro::$Subject is deprecated in /home/www/testmail.php on line 16

Deprecated: Creation of dynamic property codeworxtech\PHPMailerPro\PHPMailerPro::$MessageText is deprecated in /home/www/testmail.php on line 18

Deprecated: Creation of dynamic property codeworxtech\PHPMailerPro\PHPMailerPro::$MessageHTML is deprecated in /home/www/testmail.php on line 19

Fatal error: Uncaught codeworxtech\PHPMailerPro\Exception: Could not execute in /home/www/PHPMailer.Pro.php:1415 Stack trace: #0 /home/www/PHPMailer.Pro.php(395): codeworxtech\PHPMailerPro\PHPMailerPro->IsExploitPath('screen_shot_sam...', true) #1 /home/www/testmail.php(21): codeworxtech\PHPMailerPro\PHPMailerPro->AddAttachment('screen_shot_sam...') #2 {main} thrown in /home/www/PHPMailer.Pro.php on line 1415

Discussion

  • HBrockmann

    HBrockmann - 2024-02-28

    After deactivated html und attachment this error remains:

    Deprecated: Creation of dynamic property codeworxtech\PHPMailerPro\PHPMailerPro::$Subject is deprecated in /home/www/testmail.php on line 16
    
    Deprecated: Creation of dynamic property codeworxtech\PHPMailerPro\PHPMailerPro::$MessageText is deprecated in /home/www/testmail.php on line 18
    
    Fatal error: Uncaught Error: Call to undefined method codeworxtech\PHPMailerPro\PHPMailerPro::SetSMTPhost() in /home/www/testmail.php:26 Stack trace: #0 {main} thrown in /home/www/testmail.php on line 26
    
     
  • Andy Prevost (CodeworxTech)

    Examples show the changes. PHPMailer Pro is NOT code compatile with PHPMailer.

     
  • Andy Prevost (CodeworxTech)

    • status: open --> closed
     

Log in to post a comment.