I am having problems getting my mail script to send a BCC. It does everything else correctly though. Below is the code, it is pretty simple:
<?php
$to = "me@meville.com";
$subject = "Customer Survey";
$headers = 'From:' . $_POST['name'] . '<' . $_POST['email'] . '>' . "
";
$headers .= "Bcc: myself@meville.com
";
$message = "NAME:" . $_POST["name"] . "
";
$message .= "PHONE:" . $_POST["phone"] . "
";
$message .= $_POST["email"] . "
";
$message .= "ADDRESS:" . $_POST["address"] . "
";
$message .= "NUMBER:" . $_POST["number"] . "
";
$message .= "REEASON:" . $_POST["reason"] . "
";
$message .= "TYPE:" . $_POST["type"] . "
";
$message .= "OTHER:" . $_POST["other"];
mail($to, $subject, $message, $headers);
?>
Any help would be greatly appreciated. This is run on a Unix server, if that makes any difference. That is why there are no MIME type headers.
Thanks in advance!
Peter