diff --git a/application/admin/controllers/DownController.php b/application/admin/controllers/DownController.php index a0042e56..249610b0 100644 --- a/application/admin/controllers/DownController.php +++ b/application/admin/controllers/DownController.php @@ -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 diff --git a/application/default/controllers/AccountController.php b/application/default/controllers/AccountController.php index 4df62faf..e4b302c8 100755 --- a/application/default/controllers/AccountController.php +++ b/application/default/controllers/AccountController.php @@ -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('您的新密码'); diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 81d77ccf..c66b86b4 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -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 diff --git a/application/default/controllers/WaterController.php b/application/default/controllers/WaterController.php index d882a9c9..beb8d688 100644 --- a/application/default/controllers/WaterController.php +++ b/application/default/controllers/WaterController.php @@ -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