????JFIF??x?x????'
| Server IP : 172.67.174.47 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././home/./tempvsty/pontiacques.org/wp-content/plugins/wp-mail-smtp/src/ |
Upload File : |
<?php
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.
*
* @since 2.2.0
*/
class MailCatcherV6 extends \PHPMailer\PHPMailer\PHPMailer implements MailCatcherInterface {
use MailCatcherTrait;
/**
* Callback Action function name.
*
* The function that handles the result of the send email action.
* It is called out by send() for each email sent.
*
* @since 2.2.0
*
* @var string
*/
public $action_function = '\WPMailSMTP\Processor::send_callback';
/**
* Which validator to use by default when validating email addresses.
* We are using built-in WordPress function `is_email` to validate the email address.
*
* @see PHPMailer::validateAddress()
*
* @since 3.6.0
*
* @var string|callable
*/
public static $validator = [ Processor::class, 'is_email_callback' ];
/**
* Get the PHPMailer line ending.
*
* @since 2.2.0
*
* @return string
*/
public function get_line_ending() {
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 );
}
}