PHPMailer moved in WordPress 5.5. – causing errors
-
After the change of the namespace and the movement to a subdirectory of PHPMailer, Sendpress stopped working.
We fixed it by changing the class-sendpress-phpmailer.php in includes/classes:
old:
if(!class_exists(‘PHPMailer’)){
require( ABSPATH . WPINC . ‘/class-phpmailer.php’);
}new:
require( ABSPATH . WPINC . ‘/PHPMailer/PHPMailer.php’);
require( ABSPATH . WPINC . ‘/PHPMailer/SMTP.php’);
require( ABSPATH . WPINC . ‘/PHPMailer/Exception.php’);use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;maybe this helps someone
The topic ‘PHPMailer moved in WordPress 5.5. – causing errors’ is closed to new replies.