| 
	
 | 
 Posted by Jim Michaels on 07/02/71 11:37 
I was told I had to set the From: address to an email address on the server  
for things to work. 
Is this true? 
 
"Philip Ronan" <invalid@invalid.invalid> wrote in message  
news:BFB7D83A.3BEF6%invalid@invalid.invalid... 
> "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] 
 |