PHPackages                             devmastersbv/smtp-validate-email - 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. devmastersbv/smtp-validate-email

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

devmastersbv/smtp-validate-email
================================

Validates an email address by checking for MX records and performing and SMTP triplet connection

0.1(9y ago)19461GPL-3.0PHP

Since Aug 4Pushed 9y ago2 watchersCompare

[ Source](https://github.com/devmastersbv/smtp-validate-email)[ Packagist](https://packagist.org/packages/devmastersbv/smtp-validate-email)[ Docs](https://github.com/devmastersbv/smtp-validate-email)[ RSS](/packages/devmastersbv-smtp-validate-email/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (6)Used By (0)

SMTP\_Validate\_Email
=====================

[](#smtp_validate_email)

Perform email address validation/verification via SMTP.

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

### Basic example

[](#basic-example)

```
