This should do the trick : $headers = 'Bcc: bla@bla.com' . "\r\n"; mail('bla@bla.com', 'subject goes here', 'message goes here', $headers); Code (markup):
$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n"; Code (markup): http://www.php.net/function.mail http://www.zend.com/manual/function.mail.php You should be carefull and make tests. Some providers configured sendmail with limit of 100 adress in bcc. Do not spam, peace brother.
I haven't tested this exact code, but I use something like this. <?php mail('regular-recipient@example.com, another-regular-recipient@example.com', 'Subject', 'Insert Subject Here.', "To: Recipient Name <primary-listed-recipient@example.com>\n" . "From: Sender Name <my-address-from@example.com>\n" . "cc: CC Name <regular-cc-recipient@example.com>\n" . "Bcc: BCC Name <bcc-recipient@example.com>\n" . "X-Mailer: PHP 4.x"); ?> PHP: Basically you are specifying the headers yourself. You can see an example of this on this page.
Good point if the script will be publicly accessible. There is a good article about PHP email injection attacks you will want to understand if the script is accessible to the outside world.