[Zope3-Users] Render ZPT template to send rich-text HTML mail

Lennart Regebro regebro at gmail.com
Thu Jun 1 12:59:20 EDT 2006


On 6/1/06, thealx at poczta.onet.pl <thealx at poczta.onet.pl> wrote:
> Can I (ab)use ZPT for such purpose? I need to design ZPT template and write corresponding View object.
> How to wire together the ZPT template and corresponding View object to render a HTML message and send it using mail utility?

You would use it as any other view, really. Probably you have to
explicitly look it up with queryMultiAdapter for the object in
question, and then just call it.

However, unless REQUEST is involved generating the mail, you might
want to skip the view and just use a PageTemplate object.

-- 
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the Zope3-users mailing list