1if(mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader))
2 {
3 echo "<script>document.location.href='contact.php'</script>";
4 }
5 else
6 {
7 echo "<script>alert('Mail was not sent. Please try again later');</script>";
8 }
9 }