update email function

This commit is contained in:
jack 2018-06-27 15:01:15 +08:00
parent 1174ae3617
commit da5ee0992a
1 changed files with 4 additions and 10 deletions

View File

@ -1133,10 +1133,8 @@ class Admin_UserController extends Zend_Controller_Action
$send_body = preg_replace($patterns, $replacements, $body); $send_body = preg_replace($patterns, $replacements, $body);
$send_subject = preg_replace($patterns, $replacements, $title); $send_subject = preg_replace($patterns, $replacements, $title);
/*
$mail=new WestdcMailer($this->view->config->smtp); $mail=new WestdcMailer($this->view->config->smtp);
$mail->setFrom($this->view->config->service->email,'时空三极环境大数据平台服务组'); $mail->setFrom($this->view->config->service->email,'时空三极环境大数据平台');
$mail->setBodyText($send_body); $mail->setBodyText($send_body);
$mail->setSubject($send_subject); $mail->setSubject($send_subject);
@$mail->addTo($v['email']); @$mail->addTo($v['email']);
@ -1147,20 +1145,16 @@ class Admin_UserController extends Zend_Controller_Action
}else{ }else{
$status = "失败"; $status = "失败";
} }
*/
$sended ++; $sended ++;
/*
调试时前台循环输出result //调试时前台循环输出result
$result[$v['id']] = array( $result[$v['id']] = array(
'username'=>$v['username'], 'username'=>$v['username'],
'email'=>$v['email'], 'email'=>$v['email'],
'send_body'=>$send_body, 'send_body'=>$send_body,
'send_subject'=>$send_subject 'send_subject'=>$send_subject
); );
*/
} }
$percent = round( ( $start / $total ) * 100 ,1); $percent = round( ( $start / $total ) * 100 ,1);