updated plugin WP Mail SMTP version 2.2.1

This commit is contained in:
2020-07-24 14:08:58 +00:00
committed by Gitium
parent 4b9aecd896
commit fa69c9daa6
40 changed files with 3546 additions and 2570 deletions

View File

@ -13,7 +13,7 @@ if ( ! class_exists( 'PHPMailer', false ) ) {
*
* @since 1.0.0
*/
class MailCatcher extends \PHPMailer {
class MailCatcher extends \PHPMailer implements MailCatcherInterface {
/**
* Callback Action function name.
@ -77,6 +77,9 @@ class MailCatcher extends \PHPMailer {
$mail_mailer === 'pepipost'
) {
try {
// Allow to hook early to catch any early failed emails.
do_action( 'wp_mail_smtp_mailcatcher_smtp_pre_send_before', $this );
// Prepare all the headers.
if ( ! $this->preSend() ) {
return false;
@ -151,4 +154,16 @@ class MailCatcher extends \PHPMailer {
return $this->CustomHeader;
}
/**
* Get the PHPMailer line ending.
*
* @since 2.2.0
*
* @return string
*/
public function get_line_ending() {
return $this->LE; // phpcs:ignore
}
}