public function cc($cc) { if ($this->mailer_engine == 'phpmailer') { $cc = $this->_str_to_array($cc); $names = $this->_extract_name($cc); $cc = $this->clean_email($cc); if ($this->validate) { $this->validate_email($cc); } reset($names); foreach ($cc as $address) { list($key, $name) = each($names); $this->phpmailer->addCC($address, $name); } } else { parent::cc($cc); } return $this; }