bcc() 공개 메소드

Alias to set the bcc headers
public bcc ( string $email, string $name = null ) : Mail
$email string
$name string
리턴 Mail
예제 #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'));
 }