My hosting company keeps disabling the mail function on my website as apparently I am going over the limit of sending/receiving 200 messages a day, which I am (not even coming close). I told them that I have a PHP contact form and they claim that it is most likely causing the problem. I have checked and rechecked the coding and do not see how by sending one message through it, many more would be sent. (it has always worked perfectly and has never sent multiples of the same form).
Here it is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="Refresh" CONTENT="2; URL=index.php">
</head>
<body>
<?
$name=$_POST['name'];
$email=$_POST['email'];
$phone=$_POST['phone'];
$location=$_POST['location'];
$website=$_POST['website'];
$graphic=$_POST['graphic'];
$webdev=$_POST['webdev'];
$other=$_POST['other'];
$other2=$_POST['other2'];
$description=$_POST['description'];
$to="addressremoved";
$message ="Results from Contact Form\n";
$message .= "\nName: $name\n";
$message .= "E-mail: $email\n";
$message .= "Phone Number: $phone\n";
$message .= "Location: $location\n";
$message .= "Website: $website\n";
$message .= "Graphic: $graphic\n";
$message .= "Website Development: $webdev\n";
$message .= "Other: $other\n";
$message .= "Specification: $other2\n";
$message .= "Brief Project Description: $description\n";
if(mail($to,"Contact Form",$message,"From: $email\n")) {
echo '<p align="center">Your email has been sent. You will receive a reply shortly.</p>
<p align="center">If your browser does not automatically redirect you to back to the main page, <a href="index.php">click here</a>.</p>';
} else { echo 'There was a problem sending your message. Please contact us directly at email address removed.'; }
?>
</body>
</html>
If the form is correct, is it possible that spam bots or crawlers of sorts are triggering the form and sending many messages (none of which I am actually receiving)?!?!
Thanks in advance,
Tirus
