邀请评审添加附件支持
This commit is contained in:
parent
59400804be
commit
9288d9253a
|
@ -308,7 +308,9 @@ class Admin_ReviewController extends Zend_Controller_Action
|
||||||
$mail->setBodyText($mailtp->getBody());
|
$mail->setBodyText($mailtp->getBody());
|
||||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||||
$mail->addTo($expinfo['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())
|
if($mail->send())
|
||||||
{
|
{
|
||||||
$this->messenger->addMessage('成功邀请专家:'.$expinfo['realname']);
|
$this->messenger->addMessage('成功邀请专家:'.$expinfo['realname']);
|
||||||
|
|
Loading…
Reference in New Issue