Código PHP:
Ver originalif ($asunto=="sin_asunto" || $texto=="" || $remite=="")
echo "Rellena los datos requeridos correctamente. <a href='formulario.html'>Volver</a>";
else
{
mail($to,$asunto,$texto,$header);
?>
<script>
window.location.href="index.php";
</script>
<?php
}