else { mail($to,$asunto,$texto,$header); ?> <script> alert("se ha enviado"); window.location.href="contacto.html"; </script> <?php }