We do this using the jakarta taglibs. There is a tag called mailer. When wrapped around the email body in a jsp will send an email.
I see that the example (mailer.jsp) is assisted by the request tag. <%@ taglib uri="http://jakarta.apache.org/taglibs/mailer-1.1" prefix="mt" %> <%@ taglib uri="http://jakarta.apache.org/taglibs/request-1.0" prefix="req" %> You'll have to check that out to see if you need it. Donaghy Nathan Coast a �crit : > > Hi, > > Is there any way to generate content that isn't written to the > ServletResponse? I'd like to use jsp / struts to generate html emails. > > something like this: > 1) user clicks 'generate email' button. > 2) struts action sets up parameters and identifies recipients. > 3) delegate to a jsp to create the html email content. > 4) trap the content (don't return to the user) and send as an email. > 5) return a message to user confirming email has been sent. > > is this possible without having to re-invent a servlet container :) > > thanks > Nathan > > -- > Nathan Coast > Managing Director > Codeczar Ltd > mob : (852) 9049 5581 > tel : (852) 2834 8733 > fax : (852) 2834 8755 > web : http://www.codeczar.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

