PHP Classes

File: readme.md

Recommend this page to a friend!
  Classes of Dmitry M. Merkushin   PHP Email Validator   readme.md   Download  
File: readme.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Email Validator
Check if a email address is valid with the SMTP MX
Author: By
Last change: try to fix markdown
Date: 10 years ago
Size: 394 bytes
 

 

Contents

Class file image Download

Email validator

Purpose

Check:

  • is email valid (via simple regexp)
  • does email exist

Usage

$validator = new EmailValidator('[email protected]', 'mydomain.com', '[email protected]');

if ($validator->validate()) {

    echo 'valid email';

} else {

    echo 'invalid email';

}

Important

Only for non-IDN emails