コード例 #1
0
 public function resendAction()
 {
     $request = $this->getRequest();
     $id = $this->_helper->IdConvert->hexToStr($request->getParam('id'));
     try {
         $mail = $this->_model->getMailFull($id);
         $this->sendMail($mail->ws_service_id, $mail->email_address, $mail->content_subject, $mail->content_mail, explode(' ', $mail->content_cc), explode(' ', $mail->content_bcc));
         $this->_model->update(array('ghost' => true), $this->_model->getAdapter()->quoteInto('id = ?', $id));
         $this->_helper->messenger->success();
         $this->_helper->redirector('index');
         return;
     } catch (Logic_Ws_Exception $e) {
         $this->_helper->error(MSG_ERROR, $e);
     }
 }
コード例 #2
0
 /**
  * @return void
  */
 public function detailsAction()
 {
     $request = $this->getRequest();
     $id = $this->_helper->IdConvert->hexToStr($request->getParam('id'));
     $data = array();
     try {
         $data = $this->_model->getMailFull($id);
     } catch (Logic_Ws_Mail_Exception $e) {
         $this->_helper->messenger('error', MSG_ERROR, $e);
         $this->_helper->redirector('index');
         return;
     }
     $this->view->last = $this->getRequestStackPrevious();
     $this->view->data = $data;
 }