bcc() public method

Alias to set the bcc headers
public bcc ( string $email, string $name = null ) : Mail
$email string
$name string
return Mail
Exemplo n.º 1
0
 public function testBcc()
 {
     $m = new Mail('Subject');
     $m->bcc('*****@*****.**', 'Bob Smith');
     $this->assertEquals('Bob Smith <*****@*****.**>', $m->getHeader('Bcc'));
     $m->bcc(array('*****@*****.**', '*****@*****.**'));
     $this->assertEquals('test@email.com, someone@email.com', $m->getHeader('Bcc'));
 }