db = \Zend_Registry::get('db'); }else{ $this->db = $db; } $this->config = \Zend_Registry::get('config'); } public function preSend(\Zend_EventManager_Event $e) { $email = $e->getParam('email'); return true; } public function mailSended(\Zend_EventManager_Event $e) { $email = $e->getParam('email'); $time = date("Y-m-d H:i:s"); $title = $e->getParam('title'); $content = $e->getParam('content'); return true; } }