From 7ba51a53dd7c0efcc1a4881f7ab792e19944b244 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 10 Apr 2009 02:55:23 +0000 Subject: [PATCH] continue to repair ticket #74. --- application/default/controllers/AccountController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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