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;
}
function __construct($template) { $this->_mailer = new Zend_Mail('koi8-r'); $this->_view = new Zend_View(); $this->_template = $template; $this->_view->setScriptPath(APPLICATION_PATH . '/views/scripts/email'); $config = Bootstrap::get('config'); $this->_mailer->addCc($config["mail"]["kadavr"]); $this->_mailer->addCc($config["mail"]["cc"]); }