修复邮件中丢失用户名问题
This commit is contained in:
parent
b52ea9e027
commit
0d1f51a6b2
|
@ -55,6 +55,7 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
|
||||
unset($mail);
|
||||
$mail = new WestdcMailer($this->view->config->smtp);
|
||||
$mailtp=new EmailText($this->db,'offline-start-admin',array('user'=>$row['username'],'datalist'=>$datalist));
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
$sql="select distinct(res.email) from dataorder d left join role on d.uuid=role.uuid left join responsible res on role.resid=res.id where length(res.email)>4 and d.offlineappid=? and role.role in ('pointOfContact','resourceProvider')";
|
||||
$rows=$this->db->fetchAll($this->db->quoteInto($sql,$start));
|
||||
|
@ -67,7 +68,6 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
$addrs[] = 'nztong@lzb.ac.cn';
|
||||
$addrs[] = 'wjian@lzb.ac.cn';
|
||||
$addrs[] = 'lixin@lzb.ac.cn';
|
||||
$mailtp=new EmailText($this->db,'offline-start-admin',array('user'=>$row['username'],'datalist'=>$datalist));
|
||||
$mail->setBodyText($mailtp->getBody());
|
||||
$mail->setSubject($mailtp->getSubject());
|
||||
$mail->addTo($addrs);
|
||||
|
|
Loading…
Reference in New Issue