Send Email with CC and BCC

 
<?php

$to = 'recipient@example.com';
$subject = 'This is the subject';
$message = "This is the content of this test email.";
$headers = "From: sender@example.com\r\nReply-To: sender@example.com\r\n"
    . "CC: recipient_cc@example.com\r\nBCC: recipient_bcc@example.com";

mail($to, $subject, $message, $headers);

?>

 

Related Snippets

•  Send Email in Html format
•  Send Email in Html and Plain Text formats
•  Send Email with Attachment
•  Send Email