Posted by James on 04/10/06 07:29
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);
Navigation:
[Reply to this message]
|