addBcc() 공개 메소드

Adds the ezcMailAddress $address to the list of 'bcc' recipients.
public addBcc ( ezcMailAddress $address )
$address ezcMailAddress
예제 #1
0
 /**
  * Test for issue #16154: Bcc headers are not stripped when using SMTP
  */
 public function testStripBccHeader()
 {
     $options = new ezcMailOptions();
     $options->stripBccHeader = true;
     $mail = new ezcMail($options);
     $mail->from = new ezcMailAddress("*****@*****.**", "No Spam 1");
     $mail->addTo(new ezcMailAddress("*****@*****.**", "No Spam 2"));
     $mail->addBcc(new ezcMailAddress("*****@*****.**", "No Spam 3"));
     $mail->subject = __FUNCTION__;
     $source = $mail->generate();
     // Assert that the mail source doesn't contain the Bcc header
     $this->assertEquals(false, strpos($source, "Bcc: "));
 }