My script has been hijacked!!
I originally posted here http://www.phpbuilder.com/board/showthread.php?t=10308538
And have since made the suggested changes, but just recently I have been getting 20-40 emails and hour with HUNDREDS of email addresses in them sending spam from ME!!!
Here is the code I am using...
if(isset($Submit))
{
if($name != "" && $email != "")
{
$message = "Quote Request from Website:<br><br>
Name: $name<br>
Email: $email<br>
Location: $where<br>
Comment/Question: $needs<br>
Phone Number: $number";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "From: <$email>\n";
$headers .= "Reply-To: <$email>\n";
//comment this is the new code
if (strstr($email, '@') == '@trafick.net') {exit('nice try');}
mail("curtis@trafick.net,$email", "Quote Request from Website", $message, $headers);
header("Location: thanks.htm");
}
else
{
$error = "y";
}
}
?>
This is the send mail portion of the page.... I need help!!! I am "sending" about 2000+ emails per hour..
HELP!!!!