Check:
$validator = new EmailValidator('test121212321312@gmail.com', 'mydomain.com', 'noreply@mydomain.com');
if ($validator->validate()) {
echo 'valid email';
} else {
echo 'invalid email';
}
Only for non-IDN emails
info at phpclasses dot org