core/components/Mail.php
public function ccAddresses(array $emails)
    {
        foreach ($emails as $name => $mail) {
            if (is_int($name)) {
                $this->ccAddress($mail);
            } else {
                $this->ccAddress($mail, $name);
            }
        }

        return $this;
    }
public function ccAddresses(array $emails)
    {
        foreach ($emails as $name => $mail) {
            if (is_int($name)) {
                $this->ccAddress($mail);
            } else {
                $this->ccAddress($mail, $name);
            }
        }

        return $this;
    }
public function ccAddresses ( array $ emails ) { foreach ( $ emails as $ name => $ mail ) { if ( is_int ( $ name ) ) { $ this -> ccAddress ( $ mail ) ; } else { $ this -> ccAddress ( $ mail , $ name ) ; } } return $ this ; }
Add multiple CC addresses into the mailer object.

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']);
```

@return \luya\components\Mail
@param array $emails An array with email addresses or name => email paring to use names.
Add multiple CC addresses into the mailer object .