|
Posted by Q on 03/14/06 10:32
Hi..
This script has been abused to send to AOL. My question "How the ... did
they do that???"
Regards,
Marco
<?
if($_POST[name] && $_POST[subject] && $_POST[text]) {
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: \"".$_POST[name]."\" <".$_POST[email].">\n";
mail('some@recipient.somewhere', "Website: ".$_POST[subject],
nl2br($_POST[text]), $headers);
echo "<META HTTP-EQUIV=Refresh CONTENT=\"2;
URL=index.php?page=contact\">Mail sent....";
}
?>
Navigation:
[Reply to this message]
|