y este en thanks.php
 
<---------------------------------------------------------------------->
<?php  
if($sentemail == "2"){  
include("sorry.php");  
}else{  
$num = $sentmessage + 1;  
setcookie("sentemail","$num",time()+600); //set the cookie 
$email = "Sender Name:\t$name\nSender E- Mail:\t$thereemail\nMessage:\t$message\nIP:\t$REMO  TE_ADDR\n\n"; 
$to = "
[email protected]"; 
$subject = "Site Message"; 
$mailheaders = "From: $thereemail <> \n"; 
$mailheaders .= "Reply-To: $thereemail\n\n"; 
mail($to, $subject, $email, $mailheaders); 
include("thanksecho.php"); 
} 
?> 
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head> 
<body> 
</body>
</html>