邮件通知中添加变化记录,并暂时移除专家状态通知功能

This commit is contained in:
wlx 2012-04-02 15:13:26 +00:00
parent 6f0e10ee60
commit cd8f721dee
1 changed files with 6 additions and 1 deletions

View File

@ -1798,6 +1798,7 @@ class AuthorController extends Zend_Controller_Action
'email'=> $user->email,
//元数据标题
'title'=> $row['title'],
'changelog'=>$changelog,
));
$mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject());
@ -1829,6 +1830,7 @@ class AuthorController extends Zend_Controller_Action
'email'=> $user->email,
//元数据标题
'title'=> $row['title'],
'changelog'=>$changelog,
));
$mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject());
@ -1878,6 +1880,7 @@ class AuthorController extends Zend_Controller_Action
'email'=> $user->email,
//元数据标题
'title'=> $row['title'],
'changelog'=>$changelog,
));
$mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject());
@ -1915,6 +1918,7 @@ class AuthorController extends Zend_Controller_Action
//email to experts, sync to database?
//todo!!!
//should generate new pdf? or user could not commit a new version when it is in the reviewing process?
/*
unset($mail);
unset($mailtp);
$mail=new WestdcMailer($this->view->config->smtp);
@ -1936,7 +1940,7 @@ class AuthorController extends Zend_Controller_Action
$mail->addTo($this->debug_email);
}
@$mail->send();
*/
$data = array("commited"=>1,"error"=>$this->alertbox('ok','该版本已经成功提交,请等待数据中心进一步处理!'));
$this->jsonexit($data);
return true;
@ -1959,6 +1963,7 @@ class AuthorController extends Zend_Controller_Action
'email'=> $user->email,
//元数据标题
'title'=> $row['title'],
'changelog'=>$changelog,
));
$mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject());