Posted by Johannes Wienke on 04/10/06 09:12
Am 10.04.2006 06:29 schrieb James:
> Why don't the headers work all i get is From: NFS Anonymous Access User
> <nobody@....>
>
> $email=$_POST["email"];
> $name=$_POST["name"];
>
> $subject= "mail";
> $message="Text";
>
>
> $headers = "MIME-Version: 1.0 . \r\n";
> $headers .= "Content-type: text/html; charset=iso-8859-1'\r\n";
> $headers .= "To: $name <$email> \r\n";
> $headers .= 'From: Webmaster <webmaster@example.com> \r\n";
> $headers .= "Cc: \r\n";
> $headers .= "Bcc:\r\n";
>
>
>
> mail($email,$subject,$message,$header);
>
>
Why do you use a "to"-Header? Isn't that done by mail() itself?
Try changing the order of and put the addresses befor the content-type
headers.
[Back to original message]
|