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);