Something like:

function emailAction() {
Zend_Controller_Front::getInstance()->setParam('noViewRenderer',true);
$body = $this->view->render("email/email.phtml");
//and then you have your content in $body, and then just send
//the email as you normally do
}

/Peter




On Wed, 2007-11-28 at 08:52 -0700, Gunter Sammet wrote:
> Hi all:
> Just been wondering if there is a way to render a view for an html
> email that is not used in the display. I'm currently using Smarty as
> template engine integrated in the view. Now I would like to send out
> html emails using templates but rendering them with the data the same
> way I would do for displaying in the browser.
> Any thoughts?
> Thanks,
> 
> Gunter

Reply via email to