tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Display of velocity template emails in clients that might not display HTML
Date Fri, 28 Aug 2009 18:56:46 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pradnya,

On 8/28/2009 12:21 PM, Pradnya Gawade wrote:
> one more quick question about this. Can I go for sending multipart
> message with Velocity?

Yes, you can generate multipart messages with Velocity. You can do this
a number of ways, including "1 template for everything" where you
generate the entire multipart message, or having separate templates for
the HTML and text bodies. I think you might have better luck with the
latter, because JavaMail/MimeMessage might mangle your all-in-one message.

> or I will have to g for FreeMarker-based
> multipart email necessarily?

Freemarker is not necessary, and I'm not sure why it's relevant (unless
Freemarker comes with a nice utility making this all easy to do or
something).

> I already have implemented Velocity based
> email so I was thinking if I have change my implementation completely
> or I can modify the same to make use of multipart messages.

Stick with Velocity if you're comfortable with it. You'll likely have
the same challenges regardless of the templating technology you use.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqYKG4ACgkQ9CaO5/Lv0PCCJQCfcFnXvnQTtHxr19miEIfSSJWZ
8iQAoJtDdiOVbsNUAIcl8RvZPWQsDz6T
=dW5N
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message