";
$status= "NOTOK";}
if ( strlen($message) < 5 ){
$msgerror=$msgerror."* your Comments field is blank must be more than 5 words
";
$status= "NOTOK";}
if (!stristr($email,"@") OR !stristr($email,".")) {
$msgerror=$msgerror."* your email address is not correct
";
$status= "NOTOK";}
if($status=="OK"){// echo $query;
$headers="";
$headers4="sam@labitateam.com"; // Change this address within quotes to your address //
$headers.="Reply-to: $headers4\n";
$headers .= "From: $headers4\n";
$headers .= "Errors-to: $headers4\n";
$headers = "Content-Type: text/html; charset=iso-8859-1\n".$headers;
mail($headers4,$subject,"Contactus
Name :$name
Email:$email
Phoneno:$phone
Comments: $message","$headers");
$msg="Thank you! your message has been sent we will contact you soon.";
}
}
?>