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

Posted by Peter Fox on 03/14/06 11:30

Following on from Q's message. . .
>Hi..
>
>This script has been abused to send to AOL. My question "How the ... did
>they do that???"

Good God! Where did you get such a naive script from?

>
>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....";
>}
>
>?>
>
>

--
PETER FOX Not the same since the cardboard box company folded
peterfox@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>

 

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

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