PluginProbe ʕ •ᴥ•ʔ
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin / 4.7.1
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin v4.7.1
0.9.6 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.2 1.7.0 1.7.1 1.8.0 1.8.1 1.9.0 2.0.0 2.0.1 2.1.1 2.2.1 2.3.1 2.4.0 2.5.0 2.5.1 2.6.0 2.7.0 2.8.0 2.9.0 3.0.1 3.0.2 3.0.3 3.1.0 3.10.0 3.11.0 3.11.1 3.2.0 3.2.1 3.3.0 3.4.0 3.5.0 3.5.1 3.5.2 3.6.1 3.7.0 3.8.0 3.8.2 3.9.0 4.0.1 4.1.0 4.1.1 4.2.0 4.3.0 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.8.0 trunk 0.10.0 0.10.1 0.11.1 0.11.2 0.3.1 0.3.2 0.4 0.4.1 0.4.2 0.5.0 0.5.1 0.5.2 0.6 0.7 0.8 0.8.2 0.8.3 0.8.4 0.8.5 0.8.6 0.8.7 0.9.0 0.9.1 0.9.2 0.9.3 0.9.4 0.9.5
wp-mail-smtp / src / MailCatcherV6.php
wp-mail-smtp / src Last commit date
Admin 6 months ago Compatibility 6 months ago Helpers 6 months ago Providers 6 months ago Queue 6 months ago Reports 6 months ago Tasks 6 months ago UsageTracking 6 months ago AbstractConnection.php 6 months ago Conflicts.php 6 months ago Connect.php 6 months ago Connection.php 6 months ago ConnectionInterface.php 6 months ago ConnectionsManager.php 6 months ago Core.php 6 months ago DBRepair.php 6 months ago Debug.php 6 months ago Geo.php 6 months ago MailCatcher.php 6 months ago MailCatcherInterface.php 6 months ago MailCatcherTrait.php 6 months ago MailCatcherV6.php 6 months ago Migration.php 6 months ago MigrationAbstract.php 6 months ago Migrations.php 6 months ago OptimizedEmailSending.php 6 months ago Options.php 6 months ago Processor.php 6 months ago SiteHealth.php 6 months ago Upgrade.php 6 months ago Uploads.php 6 months ago WP.php 6 months ago WPMailArgs.php 6 months ago WPMailInitiator.php 6 months ago
MailCatcherV6.php
67 lines
1 <?php
2
3 namespace WPMailSMTP;
4
5 use PHPMailer\PHPMailer\Exception;
6
7 /**
8 * Class MailCatcher replaces the \PHPMailer\PHPMailer\PHPMailer introduced in WP 5.5 and
9 * modifies the email sending logic. Thus, we can use other mailers API to do what we need, or stop emails completely.
10 *
11 * @since 2.2.0
12 */
13 class MailCatcherV6 extends \PHPMailer\PHPMailer\PHPMailer implements MailCatcherInterface {
14
15 use MailCatcherTrait;
16
17 /**
18 * Callback Action function name.
19 *
20 * The function that handles the result of the send email action.
21 * It is called out by send() for each email sent.
22 *
23 * @since 2.2.0
24 *
25 * @var string
26 */
27 public $action_function = '\WPMailSMTP\Processor::send_callback';
28
29 /**
30 * Which validator to use by default when validating email addresses.
31 * We are using built-in WordPress function `is_email` to validate the email address.
32 *
33 * @see PHPMailer::validateAddress()
34 *
35 * @since 3.6.0
36 *
37 * @var string|callable
38 */
39 public static $validator = [ Processor::class, 'is_email_callback' ];
40
41 /**
42 * Get the PHPMailer line ending.
43 *
44 * @since 2.2.0
45 *
46 * @return string
47 */
48 public function get_line_ending() {
49
50 return static::$LE; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
51 }
52
53 /**
54 * Throw PHPMailer exception.
55 *
56 * @since 4.0.0
57 *
58 * @param string $error Error message.
59 *
60 * @throws Exception PHPMailer exception.
61 */
62 protected function throw_exception( $error ) {
63
64 throw new Exception( $error );
65 }
66 }
67