Jump to content

Verifying the existence of an email address


tcorbeil

Recommended Posts

if (preg_match("/^[a-zA-Z_]+(\w+)*((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/i",$Email)){

$messages['ValidEmail'] = "* Your email address is valid, Your Registered! ";}

  else {

$flag = "1";

$messages['InvalidEmail'] = "* Your email address is not valid, please re-enter your email address.";

 

I tought the above would work but apparently it only checks the an email address has all its attributes (******@***.***)

it doesn't go check to see if the email is in existence..  what do i need to do to check the email existence?

 

Thanks.

T.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.