diff --git a/application/default/controllers/AccountController.php b/application/default/controllers/AccountController.php index 238b2cf7..0297cda0 100755 --- a/application/default/controllers/AccountController.php +++ b/application/default/controllers/AccountController.php @@ -44,7 +44,8 @@ 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->setFrom('westdc@westgis.ac.cn'); + $mail->addHeader('Reply-To', $this->view->config->service->email); + $mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $mail->addTo($formData['email']); //中文标题有乱码,在1.5版本中尚未解决 //ref: http://framework.zend.com/issues/browse/ZF-2532