Ver original$email = filter_var($_POST['email'], FILTER_SANITIZE_EMAIL); if(filter_var($email, FILTER_VALIDATE_EMAIL)){echo"mail valido";{else{echo"mail invalido";}