public function render() { $c = $this->content; if ($c instanceof SMlite) { $c->set($this->owner->args); $c = $c->render(); } $this->template->setHTML($this->owner->args); $this->template->setHTML('Content', $c); $this->template->set('boundary', $this->owner->boundary); return $this->template->render(); }
public function render() { $this->template->set('body_parts', ''); foreach ($this->elements as $el) { if ($el instanceof TMail_Part) { $this->template->appendHTML('body_parts', $el->render()); } } $this->template->set('boundary', $this->boundary); $this->headers->set('boundary', $this->boundary)->setHTML($this->args); }