Skip to content

PHP function to validate if an email address is valid or not, includes checking for email injections, syntax formatting, dns checking, and a few basic TLD corrections.

License

4cm/email_IsValid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

email_IsValid

PHP function to validate if an email address is valid or not.

This function includes checking for email injections, syntax formatting, dns checking, and a few basic TLD corrections.

Usage

Here is how you use the email_IsValid() function:

$Email = 'foo@.com';
//
if ( !email_IsValid($Email) ) {
    //
    die('The email address you entered does not appear to be a valid email address.');
    //
}

Requirements

This function requires that you have access to the idn_to_ascii() function, which requires your PHP server have intl installed, if you want the dns check to perform.

License

The MIT License (MIT). Please see License File for more information.

About

PHP function to validate if an email address is valid or not, includes checking for email injections, syntax formatting, dns checking, and a few basic TLD corrections.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published