PHPackages                             roomoot/email\_validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. roomoot/email\_validator

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

roomoot/email\_validator
========================

A PHP Mail Validation Class through SMTP.

v1.0.2(9y ago)3371BSDPHP

Since Apr 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rookmoot/email_validator)[ Packagist](https://packagist.org/packages/roomoot/email_validator)[ Docs](http://www.diatelys.fr)[ RSS](/packages/roomoot-email-validator/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

B1;3801;0c# PHP EmailValidator

The class retrieves MX records for the email domain and then connects to the domain's SMTP server to try figuring out if the address really exists.

### Some features (see the source for more)

[](#some-features-see-the-source-for-more)

- Not really sending a message, gracefully resetting the session when done
- Command-specific communication timeouts implemented per relevant RFCs
- Catch-all account detection
- Batch mode processing supported
- MX query support on Windows without requiring any PEAR packages
- Logging and debugging support

### Installation

[](#installation)

```
composer require rookmoot/email_validator
```

### Basic example

[](#basic-example)

```
