public function PHPMailer::clearBCCs

5.x PHPMailer.php public PHPMailer::clearBCCs()

Clear all BCC recipients.

File

inc/PHPMailer/src/PHPMailer.php, line 3634

Class

PHPMailer
PHPMailer - PHP email creation and transport class.

Namespace

PHPMailer\PHPMailer

Code

public function clearBCCs() 
 {
  foreach ($this->bcc as $bcc) {
    unset($this->all_recipients [strtolower($bcc [0])]);
  }
  $this->bcc = [];
  $this->clearQueuedAddresses('bcc');
}