$headers[] = 'From: Some One <someone@example.com>';
$headers[] = 'Cc: cc_number_1@email.com';
$headers[] = 'Cc: cc_number_2@email.com';
$headers[] = 'Bcc: bcc_number_1@email.com';
$headers[] = 'Bcc: bcc_number_2@email.com';
$success = wp_mail( $emails, $subject, $message, $headers );
//
// OR...
//
$headers[] = 'From: Some One <someone@example.com>';
foreach( $cc_email_array as $email ) {
$headers[] = 'Cc: ' . $email;
}
foreach( $bcc_email_array as $email ) {
$headers[] = 'Bcc: ' . $email;
}
$success = wp_mail( $emails, $subject, $message, $headers );
Add cc and bcc to wp_mail() headers
This post brought to you by RocketGeek, ButlerBlog, and the following: