check for email pattern if( !preg_match( “/^(([^<>()[\]\\\\.,;:\s@\”]+(\.[^<>()[\]\\\\.,;:\s@\”]+)*)|(\”([^\”\\\\\r]|(\\\\[\w\W]))*\”))@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])|(([a-z\-0-9áàäçéèêñóòôöüæøå]+\.)+[a-z]{2,}))$/i”, $email ) ) { $msg = ‘Email address was not recognized as a valid email pattern’; } get the mx host name if( preg_match( “/@\[[\d.]*\]$/”, $email ) ) { $mxHost[0] = preg_replace( “/[\w\W]*@\[([\d.]+)\]$/”, …

Check For Email pattern Read more »