How would I send a Carbon Copy using php mail function?

Hi I have a form on my website which a user can fill out. When they submit the form by pressing on the button the information they entered then goes the the admins email. How can I include a Carbon copy to go to a specific email address?

mail($recipient, $subject, $message, 'Cc: eavesdropper@example.com');

AutisticCuckoo’s code should theoretically work fine but because of a bug in PHP it won’t work. Basically if you have a CC: or BCC: header and don’t either uppercase or lowercase the ‘CC:’ bit, PHP won’t send it.

So the following code from AutisticCuckoo won’t work.

 mail($recipient, $subject, $message, 'Cc: eavesdropper@example.com');

But either of the following should work.

mail($recipient, $subject, $message, 'CC: eavesdropper@example.com');
mail($recipient, $subject, $message, 'cc: eavesdropper@example.com');

It’s a very weird bug, I remember reading about it in a Sitepoint article a while back.