You are here: abused mailscript => How did they do it??? « PHP Programming Language « IT news, forums, messages
abused mailscript => How did they do it???

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация