• 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

Viewing 1 replies (of 1 total)
  • Plugin Author Josh Lyford

    (@joshl)

    Thanks for the info. I will update the plugin and get a new version out ASAP.

    Hopefully have this fixed be end of day today.

    Thanks Again,
    Josh

Viewing 1 replies (of 1 total)

The topic ‘PHPMailer moved in WordPress 5.5. – causing errors’ is closed to new replies.