|
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]
|