You can contact us by filling out the form below.
YOU MUST FILL IN ALL FIELDS!";
emailform();
}
elseif (substr_count($email,"@") != 1 || substr_count($email,".") < 1) {
echo "Invalid e-mail address!
";
emailform();
}
else {
$time = time()+$timeoffset*3600;
$url = "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$message = "
E-Mail Sent From ".$url."
The following was sent from ".$url.":
From: ".$name."
E-Mail Address: ".$email."
Subject: ".$subject."
User's IP Address: ".$_SERVER['REMOTE_ADDR']."
Sent At: ".date("l, F jS, Y h:i:s A",$time)."
Message:
".nl2br($message)."
";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$name." \r\n";
mail($youraddress,$subject_prefix.$subject,$message,$headers) or die("Sorry, there was an error when sending the e-mail.
Please contact ".$youraddress."");
echo "E-mail successfully sent!";
}
} else {
echo "All fields are required!
";
emailform();
}
?>