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

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

payprocessing/smtp-validate-email
=================================

Perform email address verification via SMTP

v1.0.1(7y ago)041GPL-3.0+PHPPHP &gt;=5.6

Since Nov 2Pushed 7y ago4 watchersCompare

[ Source](https://github.com/Platron/smtp-validate-email)[ Packagist](https://packagist.org/packages/payprocessing/smtp-validate-email)[ Docs](https://github.com/zytzagoo/smtp-validate-email)[ RSS](/packages/payprocessing-smtp-validate-email/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

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

[](#smtp_validate_email)

[![PHP Version](https://camo.githubusercontent.com/49d8f5ed664719023f6aa6ce9c793bfd28871d3841211e9e89c4d76bfb71c064/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d352e362532422d626c75652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zytzagoo/smtp-validate-email)[![Software License](https://camo.githubusercontent.com/b1fc13cd053bac8d9022f14dfbb0a7253f901b39fc04e0a8057463c12e9b3614/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d67706c332532422d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)[![Build Status](https://camo.githubusercontent.com/b93de047821bd3744c571f7362a9dd6cd4fc061cf8dff8e1494b0b6a49d2fb0c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7a79747a61676f6f2f736d74702d76616c69646174652d656d61696c2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/zytzagoo/smtp-validate-email)[![Scrutinizer Coverage](https://camo.githubusercontent.com/6baff82a5cd2fa5ec8329034b2bb26d0ccab16905537fb636a8beeeb503def19/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7a79747a61676f6f2f736d74702d76616c69646174652d656d61696c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/zytzagoo/smtp-validate-email/?branch=master)

Perform email address validation/verification via SMTP.

The `SMTPValidateEmail\Validator` 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.

Earlier versions (before 1.0) used the `SMTP_Validate_Email` class name (and did not use namespaces and other now-common PHP features). Care has been taken to keep the old API and migrating old code should be painless. See ["Migrating to 1.0 from older versions"](#migrating-to-1.0-from-older-versions) section. Or just use/download the ancient [0.7 version](https://github.com/zytzagoo/smtp-validate-email/releases/tag/v0.7).

Features
--------

[](#features)

- Not actually sending the message, gracefully resetting the SMTP session when done
- Command-specific communication timeouts implemented per relevant RFCs
- Catch-all account detection
- Batch mode processing supported
- Logging/debugging support
- No external dependencies
- Covered with unit/functional tests

Installation
------------

[](#installation)

Install via [composer](https://getcomposer.org/):

`composer require zytzagoo/smtp-validate-email --update-no-dev`

Usage examples
--------------

[](#usage-examples)

### Basic example

[](#basic-example)

```
