ccAddresses() public method

If no key is used, the name is going to be ignored, if a string key is available it represents the name. php ccAddresses(['foo@example.com', 'bar@example.com']); or with names php ccAddresses(['John Doe' => 'john.doe@example.com', 'Jane Doe' => 'jane.doe@example.com']);
Since: 1.0.0-RC2
public ccAddresses ( array $emails ) : Mail
$emails array An array with email addresses or name => email paring to use names.
return Mail
Beispiel #1
0
 public function testCcAddresses()
 {
     $mail = new Mail();
     $mail->ccAddresses(['*****@*****.**', 'John Doe' => '*****@*****.**']);
     $mailerBcc = $mail->mailer->getCcAddresses();
     $this->assertSame('*****@*****.**', $mailerBcc[0][0]);
     $this->assertSame('*****@*****.**', $mailerBcc[0][1]);
     $this->assertSame('*****@*****.**', $mailerBcc[1][0]);
     $this->assertSame('John Doe', $mailerBcc[1][1]);
 }