You are here: Re: send mail to someone « PHP Programming Language « IT news, forums, messages
Re: send mail to someone

Posted by Philip Ronan on 12/04/05 01:18

"Tommy DN" wrote:

> This code works and send me e-mail:
> ---
> $recipient="email@mydomain.com";
> $subject="subject";
> $header="From: " . $_POST['emailadres'];
> $mail_body= $_POST['commentaar'];
> mail($recipient, $subject, $mail_body, $header);
> ---

Your code is absolute crap. See if you can work out what would happen with
the following POST data:

emailadres = "tommy.dn@example.com
Cc: spam.me@example.com
Bcc: spam.me.also@example.com
Content-Type: text/html"

commentaar="<HTML><BODY><H1>CHEAP V.I.A.G.R.A FOR $ALE!!!!!</H1>...etc..."

Until you figure out how to avoid problems like this, I suggest you remove
all your email scripts from your website.

By the way, your mail probably isn't reaching its recipient because of a
spam filter somewhere.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/

 

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

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