1 | <?php |
||
6 | class MailMxValidation |
||
7 | { |
||
8 | public function isEmailHostValid(string $emailAddress): bool |
||
14 | |||
15 | public function isEmailFormatValid(string $emailAddress): bool |
||
24 | |||
25 | /** |
||
26 | * Check DNS Records for MX type. |
||
27 | */ |
||
28 | private static function isMxValid(string $host): bool |
||
32 | |||
33 | /** |
||
34 | * Check if one of MX, A or AAAA DNS RR exists. |
||
35 | */ |
||
36 | private function isHostValid(string $host): bool |
||
40 | } |
||
41 |