You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With WP_Debug on, you'll see a notice in 5.5 about deprecated PHP Mailer issues.
For reference, Here's how the Delicious Brains team is handling calling that class now, which includes backward compatibility:
/**
* Gets the PHP Mailer instance.
*
* Backwards-compatibility for pre-5.5 versions of WordPress.
*
* @return PHPMailer
*/
public function get_PHPMailer() {
if ( file_exists( ABSPATH . WPINC . '/PHPMailer/PHPMailer.php' ) ) {
require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php';
require_once ABSPATH . WPINC . '/PHPMailer/Exception.php';
$PHPMailer = new \PHPMailer\PHPMailer\PHPMailer();
} else {
require_once ABSPATH . WPINC . '/class-phpmailer.php';
$PHPMailer = new \PHPMailer( true );
}
return $PHPMailer;
}
I briefly tried to fork this plugin and make a PR for that change, but it kept breaking. Hopefully this is enough rails to run on for you to resolve this!
I use email cop on lots of test sites, and love it!
The text was updated successfully, but these errors were encountered:
With WP_Debug on, you'll see a notice in 5.5 about deprecated PHP Mailer issues.
For reference, Here's how the Delicious Brains team is handling calling that class now, which includes backward compatibility:
I briefly tried to fork this plugin and make a PR for that change, but it kept breaking. Hopefully this is enough rails to run on for you to resolve this!
I use email cop on lots of test sites, and love it!
The text was updated successfully, but these errors were encountered: