Claude said: > > > EmailTool - Send email using a template. Having this functionality can > > > make a compelling reason to use Velocity since you can't really do this > > > with JSP. Potentially, this could use an already configured > > > VelocityEngine in VelocityViewServlet, and/or, it could be completely > > > stand alone requiring it's own configured VelocityEngine instance and > > > not be dependent on the servlet API. I've heard Turbine has such a tool. > > > > hmm. something like this could be very cool. my instinct would be to say > > it shouldn't be tied to the VVS. while we definitely want it to be able to > > work with that, i don't think we should tie people to it. i'm curious that > > you called it EmailTool. do you anticipate using this as a tool with the > > ToolboxManager et. al.? i'm trying to envision how such functionality would > > best be structered/implemented. > > Actually I do have a SmtpTool, referenced in my toolbox.xml, that implements an smtp queue. > It's usage is sthing like : > $SmtpTool.send(email , name , subject , content [ , content-type (html/text) ] ) > where content is an url. > > I'll contribute it if you are interested.
hmm. it's not really what i initially thought of, but some people might be interested. i was kinda envisioning some system that allowed users to create an email body from a velocity template for generating/sending easily customized admin-type/account service emails. (e.g. "your password has been changed", "your account is overdue", or whatever) personally, i don't think i'd ever use an SmtpTool such as you describe, but it might fit in a contrib folder (and if many people seem to use it, maybe move it into the main). if nothing else, i'm curious to see it. perhaps some of it could be used as seed-code for the email service i envision. Nathan Bubna [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
