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: 9 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('test121212321312@gmail.com', 'mydomain.com', 'noreply@mydomain.com');

if ($validator->validate()) {

    echo 'valid email';

} else {

    echo 'invalid email';

}

Important

Only for non-IDN emails