public static property PHPMailer::$validator

Which validator to use by default when validating email addresses. May be a callable to inject your own validator, but there are several built-in validators. The default validator uses PHP's FILTER_VALIDATE_EMAIL filter_var option.

Type: string|callable

See also

PHPMailer::validateAddress()

File

inc/PHPMailer/src/PHPMailer.php, line 545

Class

PHPMailer
PHPMailer - PHP email creation and transport class.

Namespace

PHPMailer\PHPMailer

Code

public static $validator = 'php';