Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

Set your mail to field to null, and then implode your $to array in your headers

$headers .= 'From: <[email protected]>' . "\r\n";
$headers .= 'BCC: '. implode(",", $to) . "\r\n";

mail(null, $title, $content, $headers);

Solution 2

$headers .= 'Bcc: [email protected]' . "\r\n";

Solution 3

CC and BCC can be sent as headers (see:

You can also use other mail libraries – the PEAR Mail library makes sending emails a little more object-oriented.

Solution 4

Please use pass Just Array instead of doing any kind of Implode, Set quotes, comma etc.


    $bcc = array();

    foreach ($users as $user) 
        $bcc[] = $user['User']['email'];

And pass This To Mail Function:

//            ->to($from)

Ankit Patel

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply