Hey all,
I just added a WebMacroEmail class that makes it easy to send an email who's
body is actually a processed WM template file! :-)
This way, you can take advantage of sending email from within either your
java code or within your template files (if you add this class to your
context) and this class will call WM to process your template and then sent
the body of the message to be the results.
The coolness here is that if you are doing a site where you are sending
email and you want to allow non-techies to be able to edit the outgoing
messages, this will allow them to do it easily. Before, with JavaMail, you
had to read in a file...etc...so, essentially we now have MVC based email!
Here is the class. The javadocs give example usage:
<http://www.working-dogs.com/turbine/cvsweb/index.cgi/turbine/src/java/org/a
pache/turbine/util/webmacro/WebMacroEmail.java?rev=1.2&content-type=text/x-c
vsweb-markup>
Cool!
-jon
--
Java Servlet Based - Open Source | Collab.Net
Bug/Issue Tracking System |
<http://scarab.tigris.org/> | <http://Collab.Net/jobs/>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]