class EmailValidatorPhpMailerDefault in SMTP Authentication Support 8
An adaptor class wrapping the default PHPMailer validator.
Hierarchy
- class \Drupal\Tests\smtp\Unit\Plugin\Mail\EmailValidatorPhpMailerDefault implements EmailValidatorInterface
Expanded class hierarchy of EmailValidatorPhpMailerDefault
File
- tests/
src/ Unit/ Plugin/ Mail/ SMTPMailSystemTest.php, line 313
Namespace
Drupal\Tests\smtp\Unit\Plugin\MailView source
class EmailValidatorPhpMailerDefault implements EmailValidatorInterface {
/**
* {@inheritdoc}
*
* This function validates in same way the PHPMailer class does in its
* default behavior.
*/
public function isValid($email) {
PHPMailer::$validator = 'php';
return PHPMailer::validateAddress($email);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EmailValidatorPhpMailerDefault:: |
public | function |
This function validates in same way the PHPMailer class does in its
default behavior. Overrides EmailValidatorInterface:: |