remove mail addHeader(reply-to) method, which is prohibited in latest version(1.10)
This commit is contained in:
parent
bb08b8c32f
commit
b5fec2f7ce
|
@ -49,7 +49,6 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
$mail->setBodyText($body);
|
||||
$mail->addTo($row['email']);
|
||||
$mail->setSubject('西部数据中心已收到您的纸质离线申请');
|
||||
$mail->addHeader('Reply-To', $this->view->config->service->email);
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
$mail->send();
|
||||
|
||||
|
@ -103,7 +102,6 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
$mail->setBodyText($body);
|
||||
$mail->addTo($row['email']);
|
||||
$mail->setSubject('西部数据中心已开通了您的离线申请');
|
||||
$mail->addHeader('Reply-To', $this->view->config->service->email);
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
$mail->send();
|
||||
} //ftp1 deal
|
||||
|
|
|
@ -46,7 +46,6 @@ class AccountController extends Zend_Controller_Action
|
|||
$body=file_get_contents($this->view->config->register->email->template);
|
||||
$body=str_replace("[username]",$formData['username'],$body);
|
||||
$mail->setBodyText($body);
|
||||
$mail->addHeader('Reply-To', $this->view->config->service->email);
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
$mail->addTo($formData['email']);
|
||||
//中文标题有乱码,在1.5版本中尚未解决
|
||||
|
@ -233,7 +232,6 @@ class AccountController extends Zend_Controller_Action
|
|||
";
|
||||
$body.="http://westdc.westgis.ac.cn/account/fetchpwd/".$username."/".$uid;
|
||||
$mail->setBodyText($body);
|
||||
$mail->addHeader('Reply-To', $this->view->config->service->email);
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
$mail->addTo($formData['email']);
|
||||
$mail->setSubject('密码已重置');
|
||||
|
@ -263,7 +261,6 @@ class AccountController extends Zend_Controller_Action
|
|||
$body.="
|
||||
http://westdc.westgis.ac.cn/account/login";
|
||||
$mail->setBodyText($body);
|
||||
$mail->addHeader('Reply-To', $this->view->config->service->email);
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
$mail->addTo($urow->email);
|
||||
$mail->setSubject('您的新密码');
|
||||
|
|
|
@ -932,16 +932,9 @@ class DataController extends Zend_Controller_Action
|
|||
$mail->setBodyText($body);
|
||||
$mail->addTo($formData['email']);
|
||||
$mail->setSubject('您在西部数据中心进行的离线申请');
|
||||
$mail->addHeader('Reply-To', $this->view->config->service->email);
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
$attach=$mail->createAttachment($pdf->Output('applicant','S'));
|
||||
$attach->filename='数据申请-'.$formData['realname'].'.pdf';
|
||||
/*$tr=new Zend_Mail_Transport_Smtp($this->view->config->smtp->host,
|
||||
array('ssl' => $this->view->config->smtp->ssl,
|
||||
'auth'=>$this->view->config->smtp->auth,
|
||||
'username'=>$this->view->config->smtp->username,
|
||||
'password'=>$this->view->config->smtp->password));
|
||||
$mail->send($tr);*/
|
||||
$mail->send();
|
||||
|
||||
//跳转到/data/order,并提示帮助信息,告知用户已经发送EMAIL
|
||||
|
|
|
@ -446,16 +446,9 @@ class WaterController extends DataController
|
|||
$mail->setBodyText($body);
|
||||
$mail->addTo($formData['email']);
|
||||
$mail->setSubject('您在西部数据中心进行的离线申请');
|
||||
$mail->addHeader('Reply-To', $this->view->config->service->email);
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
$attach=$mail->createAttachment($pdf->Output('applicant','S'));
|
||||
$attach->filename='数据申请-'.$formData['realname'].'.pdf';
|
||||
/*$tr=new Zend_Mail_Transport_Smtp($this->view->config->smtp->host,
|
||||
array('ssl' => $this->view->config->smtp->ssl,
|
||||
'auth'=>$this->view->config->smtp->auth,
|
||||
'username'=>$this->view->config->smtp->username,
|
||||
'password'=>$this->view->config->smtp->password));
|
||||
$mail->send($tr);*/
|
||||
$mail->send();
|
||||
|
||||
//跳转到/data/order,并提示帮助信息,告知用户已经发送EMAIL
|
||||
|
|
Loading…
Reference in New Issue