remove mail send in data submit

This commit is contained in:
jack 2018-07-10 11:03:37 +08:00
parent d2539641bb
commit b127354464
1 changed files with 40 additions and 40 deletions

View File

@ -2373,47 +2373,47 @@ class AuthorController extends Zend_Controller_Action
$this->db->query($sql,array($row['uuid'],$u_id,$row['uuid'],$u_id));
//email to admin
$mail=new WestdcMailer($this->view->config->smtp);
$mail->setFrom($this->view->config->service->email,'时空三极环境大数据平台服务组');
$mailtp=new EmailText($this->db,"metadata-new-admin",array(
'user' => $user->username,
'uuid' => $iso->uuid,
'email'=> $user->email,
//元数据标题
'title'=> $iso->resTitle,
));
$mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject());
if($this->debug==0)
{
$mail->addTo($this->view->config->service->email);
}else{
$mail->addTo($this->debug_email);
}
$mail->send();
unset($mail);
unset($mailtp);
// $mail=new WestdcMailer($this->view->config->smtp);
// $mail->setFrom($this->view->config->service->email,'时空三极环境大数据平台服务组');
// $mailtp=new EmailText($this->db,"metadata-new-admin",array(
// 'user' => $user->username,
// 'uuid' => $iso->uuid,
// 'email'=> $user->email,
// //元数据标题
// 'title'=> $iso->resTitle,
// ));
// $mail->setBodyText($mailtp->getBody());
// $mail->setSubject($mailtp->getSubject());
// if($this->debug==0)
// {
// $mail->addTo($this->view->config->service->email);
// }else{
// $mail->addTo($this->debug_email);
// }
// $mail->send();
//
// unset($mail);
// unset($mailtp);
//email to author
$mail=new WestdcMailer($this->view->config->smtp);
$mail->setFrom($this->view->config->service->email,'时空三极环境大数据平台服务组');
$mailtp=new EmailText($this->db,"metadata-new-author",array(
'user' => $user->username,
'uuid' => $iso->uuid,
'email'=> $user->email,
//元数据标题
'title'=> $iso->resTitle,
));
$mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject());
if($this->debug==0)
{
$mail->addTo($user->email);
$mail->addCc($this->view->config->service->email);
}else{
$mail->addTo($this->debug_email);
}
@$mail->send();
// $mail=new WestdcMailer($this->view->config->smtp);
// $mail->setFrom($this->view->config->service->email,'时空三极环境大数据平台服务组');
// $mailtp=new EmailText($this->db,"metadata-new-author",array(
// 'user' => $user->username,
// 'uuid' => $iso->uuid,
// 'email'=> $user->email,
// //元数据标题
// 'title'=> $iso->resTitle,
// ));
// $mail->setBodyText($mailtp->getBody());
// $mail->setSubject($mailtp->getSubject());
// if($this->debug==0)
// {
// $mail->addTo($user->email);
// $mail->addCc($this->view->config->service->email);
// }else{
// $mail->addTo($this->debug_email);
// }
// @$mail->send();
$data = array("commited"=>1,"error"=>$this->alertbox('ok','该版本已经成功提交,请等待数据中心进一步处理!'));
$this->jsonexit($data);