邀请评审添加附件支持

This commit is contained in:
wlx 2011-10-13 13:44:19 +00:00
parent 59400804be
commit 9288d9253a
1 changed files with 3 additions and 1 deletions

View File

@ -309,6 +309,8 @@ class Admin_ReviewController extends Zend_Controller_Action
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
$mail->addTo($expinfo['email']);
$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']);