This is how I've handled it as well, and with Velocity you have the added
benefit of being able to generate multi-part encoding.  Since your
recipients may prefer to receive plain-text messages, it's not a bad idea to
format both plain text and html.  I've also used Velocity to wrap
iText-based code to generate PDF documents which can then be emailed or
whatever.

-----Original Message-----
From: phillip rhodes [mailto:[EMAIL PROTECTED]
Sent: Friday, July 22, 2005 6:33 AM
To: Tapestry users
Subject: Re: Getting a Tapestry page as HTML for e-mail



I did this same thing (email from tapestry template)
and came into a limitation.  I needed to send the
email both in the context of a web request (tapestry)
and also as part of the back end process of order
fulfillment (batch or workflow process).  As long as
the email is being generated in the context of a web
request, the tapestry approach is fine.

I ended up throwing a couple of velocity templates in
my project, I wrapped a tapestry component around the
velocity engine to invoke it and viola, same template
(velocity) being used to generate the screen and the
email for your business process.




--- Henri Dupre <[EMAIL PROTECTED]> wrote:

> On 7/21/05, Adam Greene <[EMAIL PROTECTED]> wrote:
> > I created a component that wrapped HTML on a page
> and sent it as an email.
> > Basically, after every successful form submit,
> people usually display a
> > "Form Submitted" page and I simply put the
> component there.  It even has
> > enough sense to convert relative urls with
> absolute urls and can even attach
> > assets/images/css et al to the outgoing message as
> an option.
>
> That is very nice!!! Could you share that code?
>
> Henri.
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to