if ( !
is_array( $attachments ) ) { $attachments =
explode( "\n",
str_replace( "\r\n", "\n",
$attachments ) );
} global $phpmailer;
// (Re)create it, if it's gone missing.
if ( !
( $phpmailer instanceof PHPMailer\PHPMailer\PHPMailer
) ) { require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php';
require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php';
require_once ABSPATH . WPINC . '/PHPMailer/Exception.php';
$phpmailer =
new PHPMailer\PHPMailer\
PHPMailer( true
);
$phpmailer::
$validator =
static function D
$email ) { return (bool) is_email( $email );
};
} // Headers.
$cc = array
();
$bcc = array
();
$reply_to = array
();