From b95094527b821c14b10c5a1d320400ca1ea1c789 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Fri, 6 Jan 2012 08:44:54 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=85=83=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=AF=84=E8=AE=BA=E5=90=8E=E4=BD=BF=E7=94=A8=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E6=A8=A1=E6=9D=BF=E5=8A=9F=E8=83=BD=E5=8F=91=E9=80=81?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E9=82=AE=E4=BB=B6=E5=88=B0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=82=AE=E7=AE=B1=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/DataController.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 6ef60ee1..6f32a7e2 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -752,6 +752,21 @@ class DataController extends Zend_Controller_Action if($exec) { + @$mailtp=new EmailText( + $this->db, + 'data-comments-posted', + array( + 'user' =>$data['author'], + 'uuid' =>$data['uuid'], + 'title' =>$this->replace(trim($this->_request->getParam('mdtitle'))), + ) + ); + @$mail=new WestdcMailer($this->view->config->smtp); + @$mail->setBodyText($mailtp->getBody()); + @$mail->setFrom($this->view->config->service->email,'WDSCAR Service Team'); + @$mail->addTo($this->view->config->service->email); + @$mail->setSubject($mailtp->getSubject()); + @$mail->send(); $msg = "用户".$user->username."对元数据《".$this->replace(trim($this->_request->getParam('mdtitle')))."》进行了评论,点击查看"; include_once("message.php"); message::post($this->db,0,-1,"收到新数据评论",$msg);