邀请评审添加附件支持
This commit is contained in:
parent
59400804be
commit
9288d9253a
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue