2017 © Pedro PelĂĄez
 

library email_validator

A PHP Mail Validation Class through SMTP.

image

roomoot/email_validator

A PHP Mail Validation Class through SMTP.

  • Tuesday, July 26, 2016
  • by rookmoot
  • Repository
  • 1 Watchers
  • 1 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 6 % Grown

The README.md

B1;3801;0c# PHP EmailValidator, (*1)

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., (*2)

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

composer require rookmoot/email_validator

Basic example

<?php

require_once dirname(__FILE_).'/vendor/autoload.php';

$from = 'anaddress@example.com'; // for SMTP FROM:<> command
$emails = array(
  'test1@example.com',
  'test2@example.com',
  'willneverreachanything',
);


$result = EmailValidator\EmailValidator::validate($from, $emails);
var_dump($results);

You can also specify options as the third arguements of the validate method. Those options correspond to stream_socket_client context., (*3)

The Versions

26/07 2016

dev-master

9999999-dev http://www.diatelys.fr

A PHP Mail Validation Class through SMTP.

  Sources   Download

BSD

by Stéphane Bauland

mail validator smtp scraper

26/07 2016

v1.0.2

1.0.2.0 http://www.diatelys.fr

A PHP Mail Validation Class through SMTP.

  Sources   Download

BSD

by Stéphane Bauland

mail validator smtp scraper

15/04 2016

v1.0.1

1.0.1.0 http://www.diatelys.fr

A PHP Mail Validation Class through SMTP.

  Sources   Download

BSD

by Stéphane Bauland

mail validator smtp scraper

14/04 2016

v1.0.0

1.0.0.0 http://www.diatelys.fr

A PHP Mail Validation Class through SMTP.

  Sources   Download

BSD

by Stéphane Bauland

mail validator smtp scraper