adaptandolo al codigo seria asi..
Código PHP:
Ver original<?php
if($_POST){
$nombre = $_POST['nombre'];
$mail = $_POST['mail'];
$asunto = $_POST['asunto'];
$header = 'From: ' . $mail . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n"; $header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";
$mensaje = "Este mensaje fue enviado por... " . $nombre . " \r\n";
$mensaje .= "Su e-mail es: " . $mail . " \r\n";
$mensaje .= "Mensaje: " . $_POST['consulta'] . " \r\n";
$mensaje .= "Fue enviado... " . date('d/m/Y', time());
<script>
window.location.href="correctamente.php";
</script>
<? }else{ ?>
<script>
window.location.href="correctamente.php";
</script>
<? } }?>
le agregas el if($_POST){ de modo que solo se active esa funcion en cuanto haya un post y al final la redireccion...