private function _sendSettingsEmail($cc = false, $password = '', $isWelcome = false) { $mailer = new Zend_Mail(); if ($isWelcome) { $mailer->setSubject(_("Welcome to your new mailbox on") . " {$this->_mailbox['domain']}"); } else { $mailer->setSubject(_("Settings for your mailbox on") . " {$this->_mailbox['domain']}"); } $mailer->setFrom($this->_options['server']['email']['address'], $this->_options['server']['email']['name']); $mailer->addTo($this->_mailbox['username'], $this->_mailbox['name']); if ($cc) { $mailer->addCc($cc); } $this->view->mailbox = $this->_mailbox; $this->view->welcome = $isWelcome; $this->view->password = $password; $settings = $this->_options['server']; foreach ($settings as $tech => $params) { foreach ($params as $k => $v) { $settings[$tech][$k] = Mailbox::substitute($this->_mailbox['username'], $v); } } $this->view->settings = $settings; $mailer->setBodyText($this->view->render('mailbox/email/settings.phtml')); try { $mailer->send(); return true; } catch (Exception $e) { } return false; }