# BCC issues with PHP mail(). (Code included)

**URL:** <https://forum.kirupa.com/t/bcc-issues-with-php-mail-code-included/204282>\
**Category:** Uncategorized\
**Created:** [October 18, 2006, 3:29pm UTC](https://forum.kirupa.com/t/bcc-issues-with-php-mail-code-included/204282 "2006-10-18T15:29:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter71](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@Peter71](https://forum.kirupa.com/u/Peter71)\
**Post date:** [October 18, 2006, 3:29pm UTC](https://forum.kirupa.com/t/bcc-issues-with-php-mail-code-included/204282/1 "2006-10-18T15:29:11Z")

</div>

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

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