public function contactAction()
 {
     $config = Zend_Registry::get('config');
     $this->view->headScript()->appendFile($config->baseurl . '/js/jquery.validate.min.js');
     $this->view->headScript()->appendFile($config->baseurl . '/js/contact.js');
     $form = new ContactUs();
     $this->view->form = $form;
     if ($this->getRequest()->isPost()) {
         if ($form->isValid($_POST)) {
             //				$isValid = $this->_helper->common->validReCaptcha($this->_getAllParams());
             //
             //				if ($isValid) {
             $name = $form->getValue('name');
             $email = $form->getValue('email');
             $body = nl2br($form->getValue('body'));
             $db = Zend_Registry::get('db');
             $db->beginTransaction();
             $this->mailQueue->addToQueue(MailType::CONTACT_US, $name, '联系我们', $email, Constant::SYSTEM_MAIL, $body, $this->_helper->generator->generateCurrentTime());
             $db->commit();
             $this->_flashMessenger->addMessage("您的留言已经发送,我们会尽快处理并与您取得联系!谢谢您对我们的支持!!");
             $this->_redirect('/contact');
             //				} else {
             //					throw new Exception('验证码错误!');
             //				}
         }
     }
 }