EmailValidator/Validation/DNSCheckValidation.php 1 location
|
@@ 35-37 (lines=3) @@
|
32 |
|
$host = $email; |
33 |
|
|
34 |
|
// Arguable pattern to extract the domain. Not aiming to validate the domain nor the email |
35 |
|
if (false !== $lastAtPos = strrpos($email, '@')) { |
36 |
|
$host = substr($email, $lastAtPos + 1); |
37 |
|
} |
38 |
|
|
39 |
|
return $this->checkDNS($host); |
40 |
|
} |
EmailValidator/Validation/MailboxCheckValidation.php 1 location
|
@@ 159-161 (lines=3) @@
|
156 |
|
$variant = defined('INTL_IDNA_VARIANT_UTS46') ? INTL_IDNA_VARIANT_UTS46 : INTL_IDNA_VARIANT_2003; |
157 |
|
|
158 |
|
$hostname = $email; |
159 |
|
if ( false !== ($lastAtPos = strrpos($email, '@')) ) { |
160 |
|
$hostname = substr($email, $lastAtPos + 1); |
161 |
|
} |
162 |
|
$hostname = rtrim(idn_to_ascii($hostname, IDNA_DEFAULT, $variant), '.') . '.'; |
163 |
|
|
164 |
|
$mxHosts = []; |