/** * Set the html body of the email to the output from the named template. * * @param string $template The name of the template. * @param string $charset The charset to use for the content. * @param int $encoding The encoding to use for the content. * * @return Mail */ public function setBodyHtmlFromTemplate($template, $charset = null, $encoding = \Zend_Mime::ENCODING_QUOTEDPRINTABLE) { $this->_setUpLayout(); $this->view->ztalMailMacro = $this->_calculateTemplatePath($template) . '/html'; $result = $this->setBodyHtml($this->view->render($this->_template()), $charset, $encoding); $this->_revertLayout(); return $result; }