cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Hermann <>
Subject Re: generating emails from flow dom object
Date Sun, 09 Oct 2005 12:51:53 GMT
Am Sonntag, 9. Oktober 2005 12:46 schrieb Christofer Dutz:


> I am working on this for quite some time and my brain is running dry at the
> moment :-(
> I have a small shoping cart, where all information is stored in a simple
> w3c dom object. What I would like to know how I can do the following:

> Generate and send a nicely formatted Email from the dom-object:
> 1.      somehow generate content form the flow object
> 2.      do an XSLT to make it look nice
> 3.      send the email to a fixed address and one defined in the dom-object
> 4.      show the user some failure/success page

You could just do it like this:

(from flow):

and then

<map:match pattern="my-email-pipeline">
<map:generate src="module:flow-attr:data" />
<map:transform src="data2email.xsl" />
<map:transform type="sendmail" />
<map:transform src="email2html.xsl" />
<map:serialize type="html" />

See the docs of the sendmailtransformer on how to send an email.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message