I am interested in your EmailService, and I'm sure others would be, too.
Your point about dynamic content is a good one: it's quite likely
that an email would contain ExternalLinks, PageLinks, and perhaps
even stateless DirectLinks -- and it would be nice to generate those
in the email exactly as we generate them in a page.
Cheers,
Paul
On May 8, 2006, at 4:36 PM, Henri Dupre wrote:
I don't agree on this... Also I don't see really differences between
"static" email and interactive HTML. In the emails we generate,
there is
lots of dynamic content although there is no form handling, we use
the same
components plus many other tapestry features. Velocity is fine, but
not when
you start to have complex emails. What makes tapestry great for
this task
are the templates. In addition, I rather not add another technology
to our
project, Velocity is simple, but just *more* to learn and manage
for our
other developers.
And I'll give you a very usefull usage of sending html pages: for
exceptions, we send the tapestry error page by email (in tapestry
3) while
we give to the client a friendly error page. Logging is fine but it
doesn't
give you all the detailed info of an error.
I've been working on an EmailService for T4, you can inject it in
any page
and the interface is quite simple. It takes a list of properties
(for email
headers, from/to/subject), a page (String or object) and eventually an
object map if you want to call the external interface of your page.
It is working 90% now and it is relying on a fresh request cycle,
so it will
be possible to thread the whole thing. Getting a fresh request
cycle requires quite a bit of hacking, I may need to write a
specific engine
object. I can post the code on the wiki once I'm done if anyone is
interested.
On 5/3/06, James Carman <[EMAIL PROTECTED]> wrote:
Tapestry is for creating interactive HTML, not a static HTML-
formatted
email
(IMHO). I think you're trying to use an elephant gun to hunt
squirrel
here.
Velocity is perfect for generating email text. You can still use
your
architecture, you just put some helper beans in the VelocityContext.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 03, 2006 6:17 PM
To: Tapestry users; [EMAIL PROTECTED]
Subject: Re: Tapestry to generate mails ?
I had this related link over at my delicious (
http://del.icio.us/andyhot/tapestry ).
It's entitled 'Sending Tapestry-generated email with Spring' and
it's at:
http://www.behindthesite.com/blog/C1931765677/E2094832857/index.html
>From Stephane Decleire <[EMAIL PROTECTED]>:
> Hi,
>
> I would like to know if anybody use Tapestry to generate its
email ?
> Indeed, generate mails based on templates is very similar to
generate
> HTML pages ...
> As an exemple, i would like to implement the famous "I've forgot my
> password" by sending the user an email based on a template where
the
> password should be inserted.
> I would be very interested in a Tapestry approach to do this in
order to
> reuse all of my existent architecture (Tapestry/Spring/Hibernate).
>
> Thanks in advance.
>
> --
> Stιphane Decleire
>
> 05 56 57 99 20
> 06 63 78 69 06
>
>
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: tapestry-user-
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: tapestry-user-
[EMAIL PROTECTED]
--
Thanks,
Henri.
_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]