Email validator
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/EmailValidator
README.md

README.md

Email validator

Purpose

Check:

  • is email valid (simple regexp)
  • does email exist on server

Usage

$validator = new \EmailValidator\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