2017 © Pedro Peláez
 

library smtp-validator-email

Validate your email by smtp protocol

image

ddtraceweb/smtp-validator-email

Validate your email by smtp protocol

  • Tuesday, February 21, 2017
  • by ddtraceweb
  • Repository
  • 3 Watchers
  • 23 Stars
  • 32,296 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 1 Open issues
  • 14 Versions
  • 11 % Grown

The README.md

Smtp Validator Emails

Build Status * Smtp Validator mail can validate your email to send smtp mail and check your mx., (*1)

Requirements

  • PHP >= 5.4
  • namespaces use
  • smtp configuration PHP Ok.

Installation

For installation you can use composer., (*2)

Simple add "ddtraceweb/smtp-validator-email": "dev-master" in your composer.json to install the latest version, (*3)

examples :

  • example with 1 email :
 command
$emails = 'toto@somewhererlse.com';

$validator = new ValidatorEmail($email, $from);

var_dump($validator->getResults());
?>
  • example with X emails :
 command
$emails = array('toto@somewhererlse.com', 'titi@totitito.com');

$validator = new ValidatorEmail($email, $from);

var_dump($validator->getResults());
?>
  • example with X emails and have custom delays time when connection and send HELO, with domain need time to respond.
 command
$emails = array('toto@somewhererlse.com', 'titi@totitito.com');

//two loops in this example for difficult domains.
$options = array('delaySleep' => array(0, 6));

//Handle $options to the constructor as third parameter
$validator = new ValidatorEmail($email, $from, $options);

var_dump($validator->getResults());
?>
  • example with X emails with more informations on domain, mxs and priorities.
 command
$emails = array('toto@somewhererlse.com', 'titi@totitito.com');

//more informations option activate
$options = array('domainMoreInfo' => true);

//Handle $options to the constructor as third parameter
$validator = new ValidatorEmail($email, $from, $options);

var_dump($validator->getResults());
?>
  • example with X emails with more informations on domain, mxs and priorities. In example same domain for two email. This is a connection to domain and check all account emails.
 command
$emails = array('toto@somewhererlse.com', 'titi@somewhererlse.com');

//more informations option activate
$options = array('domainMoreInfo' => true);

//Handle $options to the constructor as third parameter
$validator = new ValidatorEmail($email, $from, $options);

var_dump($validator->getResults());
?>
  • example with 1 email with using a specific interface with debug mode ON:
 command
$emails = 'toto@somewhererlse.com';

$validator = new ValidatorEmail($email, $from, array('debug' => true, 'context' => 'socket' => array('bindto' => '0.0.0.0')));

var_dump($validator->getResults());
var_dump($validator->getDebug());
?>
  • Available default options
array(
  'domainMoreInfo' => false,
  'delaySleep' => array(0),
  'noCommIsValid' => 0,
  'catchAllIsValid' => 0,
  'catchAllEnabled' => 1,
  'timeout' => null, // ini_get("default_socket_timeout")
  'context' => array(),
  'detailResults' => false, // Instead of returning 0 for invalid and 1 for valid, it will return an array. array('result' => $isValid /* 0 or 1 */, 'info' => "<SMTP response like: 250 2.1.5 Ok>")
  'debug' => false
);

The Versions

21/02 2017

dev-master

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

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

 

The Development Requires

validator email smtp validator email checkmx validate email check email smtp

21/02 2017

2.2.0

2.2.0.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

 

The Development Requires

validator email smtp validator email checkmx validate email check email smtp

18/12 2015

2.1.0

2.1.0.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

 

The Development Requires

validator email smtp validator email checkmx validate email check email smtp

14/03 2015

2.0.0

2.0.0.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

 

The Development Requires

validator email smtp validator email checkmx validate email check email smtp

23/12 2014

1.3.0

1.3.0.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

validator email smtp validator email checkmx validate email check email smtp

05/12 2014

1.2.6

1.2.6.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

validator email smtp validator email checkmx validate email check email smtp

04/12 2014

1.2.5

1.2.5.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

validator email smtp validator email checkmx validate email check email smtp

03/12 2014

1.2.4

1.2.4.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

validator email smtp validator email checkmx validate email check email smtp

16/10 2014

1.2.3

1.2.3.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

validator email smtp validator email checkmx validate email check email smtp

19/09 2014

1.2.2

1.2.2.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

validator email smtp validator email checkmx validate email check email smtp

18/09 2014

1.2.1

1.2.1.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

validator email smtp validator email checkmx validate email check email smtp

16/09 2014

1.2.0

1.2.0.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

validator email smtp validator email checkmx validate email check email smtp

02/08 2013

1.1.0

1.1.0.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

validator email smtp validator email checkmx validate email check email smtp

01/08 2013

1.0.0

1.0.0.0 http://www.traceweb.fr

Validate your email by smtp protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

validator email smtp validator email checkmx validate email check email smtp