plugin updates
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace WPMailSMTP;
|
||||
|
||||
use PHPMailer\PHPMailer\Exception;
|
||||
|
||||
/**
|
||||
* Class MailCatcher replaces the \PHPMailer\PHPMailer\PHPMailer introduced in WP 5.5 and
|
||||
* modifies the email sending logic. Thus, we can use other mailers API to do what we need, or stop emails completely.
|
||||
@@ -47,4 +49,18 @@ class MailCatcherV6 extends \PHPMailer\PHPMailer\PHPMailer implements MailCatche
|
||||
|
||||
return static::$LE; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
|
||||
}
|
||||
|
||||
/**
|
||||
* Throw PHPMailer exception.
|
||||
*
|
||||
* @since 4.0.0
|
||||
*
|
||||
* @param string $error Error message.
|
||||
*
|
||||
* @throws Exception PHPMailer exception.
|
||||
*/
|
||||
protected function throw_exception( $error ) {
|
||||
|
||||
throw new Exception( $error );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user