I've been told by my webhost, who is rarely correct on things, that my simple little script is the culprit of spam being created from my site. Perhaps it's so, but could somebody tell me how this little script could be used to cause spam (except to myself)...
if ($_POST['sub']) {
$headers .= "From: <$email>\r\n";
$headers .= "Reply-To: <$email>\r\n";
$headers .= "Return-Path: <e@email.com>\r\n";
$msg = "Subscribe: $email";
mail ("e@email.com","SUBSCRIBE",$msg,$headers);
header("location:subscribe.php?a=thanks");
}
if ($_POST['unsub']) {
$headers .= "From: <$email>\r\n";
$headers .= "Reply-To: <$email>\r\n";
$headers .= "Return-Path: <e@email.com>\r\n";
$msg = "Unsubscribe: $email - $ip";
mail ("e@email.com","UNSUBSCRIBE",$msg,$headers);
header("location:subscribe.php?a=thanks");
}