How to send the result of a template using ezMailTransport?

Author Message

Toni Ascó

Monday 14 June 2004 6:59:22 am

Hello, i have a module that theoretically should send an email. The content of the email should be the one that comes from a template, so i've done something like

$tpl->setVariable("message",$message);
result = $tpl->fetch("design:contact/templateMessage.tpl");
$mail->setBody($result);

and i send the mail,

I receive the mail correctly, but i don't get the message itself, the subjsect and such, is correct but there's nothing in the body...

Any idea?

Thx in advance,

Toni

ludo thomas

Wednesday 06 July 2005 8:49:04 am

I have exactly the same pb.
but some guys seem to make it works

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.