发送邮件对于有些项目还是很重要的,而ZF原生的支持邮件的发送,大致的代码如下:
, '$this->_container->', $message->subject);
eval("/$subject = /"$subject/";");
$content = str_replace(', '$this->_container->', $message->content);
eval("/"$content = /"$content/";");
$this->_mail->addTo($this->_container->toAddress, $this->_container->toName);
$this->_mail->setSubject($subject);
$this->_mail->setContent($content);
$this->_mail->send();
} catch (Exception $e) {
return false;
}
}
}