PHPMailer\PHPMailer\PHPMailer::addBCC PHP Method

addBCC() public method

Add a "BCC" address.
public addBCC ( string $address, string $name = '' ) : boolean
$address string The email address to send to
$name string
return boolean true on success, false if address already used or invalid in some way
    public function addBCC($address, $name = '')
    {
        return $this->addOrEnqueueAnAddress('bcc', $address, $name);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @return $this
  */
 public function addBcc()
 {
     $args = func_get_args();
     isset($args[1]) ? $this->mail->addBCC($args[0], $args[1]) : $this->mail->addBCC($args[0]);
     return $this;
 }