From 9288d9253aaff0446f42e4ca116b902a83230c07 Mon Sep 17 00:00:00 2001 From: wlx Date: Thu, 13 Oct 2011 13:44:19 +0000 Subject: [PATCH] =?UTF-8?q?=E9=82=80=E8=AF=B7=E8=AF=84=E5=AE=A1=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=99=84=E4=BB=B6=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/ReviewController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index e46f7e6f..ef5cd4ae 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -308,7 +308,9 @@ class Admin_ReviewController extends Zend_Controller_Action $mail->setBodyText($mailtp->getBody()); $mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $mail->addTo($expinfo['email']); - $mail->setSubject($mailtp->getSubject()); + $mail->setSubject($mailtp->getSubject()); + $filecontent=file_get_contents("http://" . $_SERVER['HTTP_HOST'].'/data/doc/uuid/'.$uuid); + $mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, $md['title'].'.doc'); if($mail->send()) { $this->messenger->addMessage('成功邀请专家:'.$expinfo['realname']);