Email Checker Php !new! -

| Check Type | Speed | Accuracy | Use Case | |------------|-------|----------|-----------| | Syntax | Instant | Medium | Always | | DNS/MX | ~50ms | High | Always | | Disposable list | Instant | Medium | Signup forms | | SMTP RCPT TO | 1–5 sec | High | Lead validation (async) |

class EmailChecker

// Sort by priority (lower is better) array_multisort($mxhosts); email checker php

Email addresses can have + , - , . , and even quoted strings. The built-in filter handles edge cases correctly. | Check Type | Speed | Accuracy |

foreach ($mxhosts as $mx) $connection = @fsockopen($mx, 25, $errno, $errstr, $timeout); if (!$connection) continue; stream_set_timeout($connection, $timeout); // SMTP conversation $response = fgets($connection, 1024); fputs($connection, "HELO checker.local\r\n"); fgets($connection, 1024); fputs($connection, "MAIL FROM: <checker@example.com>\r\n"); fgets($connection, 1024); fputs($connection, "RCPT TO: <$recipient>\r\n"); $code = fgets($connection, 1024); fclose($connection); if (strpos($code, "250") === 0 return false; foreach ($mxhosts as $mx) $connection = @fsockopen($mx, 25,

private array $errors = []; public function check(string $email): bool