From df4cdf1cbae42de7b279f474e2b27fa719a90429 Mon Sep 17 00:00:00 2001 From: yehudah Date: Tue, 11 Aug 2020 20:24:30 +0000 Subject: * Fixed: WordPress 5.5 compatibility * Fixed: Email log filtering * Fixed: Pushover notifications * New: Suggest solution for email delivery errors --- Postman/Phpmailer/PostsmtpMailer.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Postman/Phpmailer/PostsmtpMailer.php') diff --git a/Postman/Phpmailer/PostsmtpMailer.php b/Postman/Phpmailer/PostsmtpMailer.php index c7587bb..91f5122 100644 --- a/Postman/Phpmailer/PostsmtpMailer.php +++ b/Postman/Phpmailer/PostsmtpMailer.php @@ -4,9 +4,14 @@ if ( ! defined( 'ABSPATH' ) ) { } if ( ! class_exists( 'PHPMailer', false ) ) { - require_once ABSPATH . WPINC . '/class-phpmailer.php'; + require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php'; + require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php'; + require_once ABSPATH . WPINC . '/PHPMailer/Exception.php'; } +use PHPMailer\PHPMailer\PHPMailer; +use PHPMailer\PHPMailer\Exception; + add_action('plugins_loaded', function() { global $phpmailer; @@ -120,7 +125,7 @@ class PostsmtpMailer extends PHPMailer { return $result; - } catch (phpmailerException $exc) { + } catch (Exception $exc) { $this->error = $exc; -- cgit v1.2.3