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

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Jun 1 13:57:20 EDT 2006


On Thursday 01 June 2006 10:32, 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?
>
> Could you suggest some points to start with?

There is absolutely nothing magic about ZPT pages and the Web. We use page 
templates for all sorts of things including HTML, generic XML and RML. All 
that th e"view-version" of ZPT does is provide a request and context as top 
level namespaces. You can write your own page template class that provides 
other namespaces. You should start at looking at zope.pagetemplate.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list