WordPress Email Sending Configuration

WordPress email sending configuration for Bcc (Blind carbon copy).  If you want to send Cc (carbon copy) then change the first line as

$type = 'Cc: User <user@example.com>, Another User <anotheruser@example.com>';

Does not use to Bcc or Cc then remove the first line as

$type = 'Bcc: User <user@example.com>, Another User <anotheruser@example.com>';

here if full code

$type = 'Bcc: User <user@example.com>, Another User <anotheruser@example.com>';
$admin_email = get_option( 'admin_email' );
$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
$reply = 'no-reply@' . preg_replace( '#^www\.#', '', strtolower( $_SERVER['SERVER_NAME'] ) );
$reply_to = "Reply_To: <$reply>";
$content_type = 'Content-Type: text/html';
$charset = 'Charset: UTF-8';
$from = "From: $blogname <$reply>";
$subject = 'test';
$message = 'Hi, how are you?';

$headers = array(
    $type,
    $reply_to,
    $content_type,
    $charset,
    $from
);
wp_mai( $admin_email, $subject, $message, $headers);