# Simple php problem.. need to add a BCC to mail script

**URL:** <https://forum.kirupa.com/t/simple-php-problem-need-to-add-a-bcc-to-mail-script/84200>\
**Category:** Uncategorized\
**Created:** [March 25, 2005, 6:13am UTC](https://forum.kirupa.com/t/simple-php-problem-need-to-add-a-bcc-to-mail-script/84200 "2005-03-25T06:13:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![briguy33](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/briguy33/32/386_2.png) [@briguy33](https://forum.kirupa.com/u/briguy33)\
**Post date:** [March 25, 2005, 6:13am UTC](https://forum.kirupa.com/t/simple-php-problem-need-to-add-a-bcc-to-mail-script/84200/1 "2005-03-25T06:13:15Z")

</div>

i had this simple php mail script that i made from various tutorials and [php.net](http://php.net) … and it works great (i am sure it could be better/secure, but good enough for me… right now) anyways i need to now add a BCC with an email… and i can not figure out how to do it… here is the code i tried…

```php
<?
$to = "my@address.com";
$bcc = "my@bccaddress.com";
$name = $_POST['name'];
$email = $_POST['email'];
$comments = $_POST['comments'];
$subject = "my site comments";
$Today = (date ("l dS of F Y ( h:i:s A )",time()));

$message = "$Today 
";
$message .= "message result of contact form 

";
$message .= "-------------------------------------------------------- 

";
$message .= "SENDER : 
";
$message .= "$name - $email 
";
$message .= "-------------------------------------------------------- 

";
$message .= "COMMENTS : 
";
$message .= "$comments 
";
$message .= "-------------------------------------------------------- 

";

$header = "from: $name ($email)";

mail($to, $bcc, $subject, $message, $header);
header("Location: http://www.mysite.com/thanku.html");
?>

```

now from all i know about php… (and i don’t no much at all) this should work… but no… and i want to know why. Any help and or explaination would be very helpful… thanks in advanced…

Brian
