/** * 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: ")); }