Since you are generating plain text, not HTML, I would probably not use
tapestry templating to generate the text.

Depending on how simple your email is, you may find that using the message
catalog and a find-and-replace is easy enough.

Otherwise, I would use freemarker, a tempting engine with localisation
support.

Another option is velocity but I find freemarker to be much better than
velocity.

On Friday, 20 January 2012, Markus Grell <tapes...@military.de> wrote:
> Great idea!
>
> Which approach do you recommend if I want to sent out a mail that does not
> need to look like a web page but just contains plain text? I somehow feel
> uncomfortable to put a complete mail text into a message catalog file.
>
> Markus
>
>> http://tapestry.1045711.n5.nabble.com/Generating-HTML-email-content-with-
>> Tapestry-td5075717.html
>>
>>
>> On Jan 20, 2012, at 3:27 AM, Guillaume Bodet wrote:
>>
>>
>>> Hi all,
>>>
>>>
>>> I need to send mails from my application, and I would like to use
>>> Tapestry's templating to create the body of the mail.
>>> Is there any way to programmatically get the rendering of a page or
>>> component (in an output stream, for instance) ?
>>>
>>> Regards
>>>
>>>
>>> Guillaume
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to