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
After deactivated html und attachment this error remains:
Examples show the changes. PHPMailer Pro is NOT code compatile with PHPMailer.