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']);