$mail->AddBcc('john.doe@example.com', 'John Doe');
$recipients = array( array('email' => 'john.doe@example.com', 'name' => 'John Doe'), array('email' => 'jane.doe@example.com', 'name' => 'Jane Doe'), ); foreach ($recipients as $recipient) { $mail->AddBcc($recipient['email'], $recipient['name']); }This code adds multiple Bcc recipients using an array of recipient details. In both examples, we are using the PHPMailer library to add the Bcc recipients to an email message.