if(filter_var($eMail, FILTER_VALIDATE_EMAIL)){ echo "El mail es correcto"; } else { echo "El mail no es correcto"; }