Adds a CC to the email.

@param string $email
@param string $name

@return \Scara\Mail\Mailer
196353
public function cc($email, $name = '')
    {
        if (empty($email)) {
            throw new MailerException('email is required for cc!');
        }

        $this->_mailer->addCC($email, $name);

        return $this;
    }
42866
public function addBcc($email, $name = null)
    {
        $this->bcc = array_merge($this->bcc, $this->transformEmailName($email, $name));

        return $this;
    }
1086264
protected function addAddress($type, $email, $name = null)
    {
        if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
            throw new \Parable\Mail\Exception("Email provided is invalid: {$email}");
        }
        $this->addresses[$type][] = [
            'email' => $email,
            'name'  => $name,
        ];
        return $this;
    }
188690
public function addCc($mail, $name = null)
    {
        $mail = ($name !== null) ? (ucwords($name) . " <{$mail}>") : $mail;

        $this->headers[] = "Cc: $mail";

        return $this;
    }
228480
public function to($mail, $name = null)
    {
        $this->mailer->addAddress($mail, $name);
        return $this;
    }
839998
public function addTo($email, $name = null)
    {
        $this->to = array_merge($this->to, $this->transformEmailName($email, $name));

        return $this;
    }
1213336
public function add(string $email, string $name = null): void
    {
        $bccRecipient = $this->make();
        $bccRecipient->email = $email;
        if ($name !== null) {
            $bccRecipient->name = $name;
        }
        $this->set($bccRecipient);
    }
974899
public function addBcc($address, $name = null)
    {
        $class = $this->_classes['address'];
        $bcc = new $class($address, $name);
        $this->_recipients[$bcc->email()] = $bcc;
        return $this;
    }
239112
public function addCC( $email )
    {
        if ( is_array( $email ) )
        {
            $this->mailer->addCC( $email[ 'email' ], $email[ 'name' ] );
        }
        else
        {
            $this->mailer->addCC( $email );
        }
    }
639380
public function addTo($email, $name='')
    {
        if (!is_array($email)) {
            $email = array($name => $email);
        }

        foreach ($email as $n => $recipient) {
            $this->_addRecipientAndHeader('To', $recipient, is_int($n) ? '' : $n);
            $this->_to[] = $recipient;
        }

        return $this;
    }
1249373
public function addCc($email, $name='')
    {
        if (!is_array($email)) {
            $email = array($name => $email);
        }

        foreach ($email as $n => $recipient) {
            $this->_addRecipientAndHeader('Cc', $recipient, is_int($n) ? '' : $n);
        }

        return $this;
    }
638123
function setSender( $email, $name = false )
    {
        $this->Mail->from = new ezcMailAddress( $email, $name, $this->usedCharset() );
        $this->From = array( 'name' => $name,
                             'email' => $email );
    }
946691
public function sender($email, $name = null)
    {
        $email = $this->normalizeEmail($email);
        $this->getSwiftMessage()->setSender($email, $name);

        return $this;
    }
1156397
protected function setRecipient($type, $email, $name)
    {
        $this->recipients[$type][$email] = compact('email', 'name');

        return $this;
    }
1276887
public function addTo($address, $name = null)
    {
        $address = $this->_addRecipient('To', $address, $name);
        $this->_recipients[$address->email()] = $address;
        return $this;
    }
758307
public function setFrom($email, $name = null)
    {
        if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
            throw new \Parable\Mail\Exception("Email provided is invalid: {$email}");
        }
        $this->addresses['from'] = [
            [
                'email' => $email,
                'name'  => $name,
            ]
        ];
        return $this;
    }
743697
public function setTo($email, $name)
    {
        $this->_to[] = $this->formatHeader((string) $email, (string) $name);
        return $this;
    }