You can also use a JMS-enabled utility or a message-driven bean (if you use EJB 2.0) to send 'em asynchronously. You can send the email that way and only store the header information for your email in the DB (assuming you need to preserve a record of it).
There are many different ways to do this, and no 'best' way. --joe > -----Original Message----- > From: David Bolsover [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 03, 2002 3:02 PM > To: Struts Users Mailing List > Subject: RE: Emails > > > Nice idea > > I have a similar async job that does a series of searches of > the internet before > sending results as an email. > > Jobs are posted to a db and dealt with in sequence - this > means that the action > can complete quickly while the lengthy task of compiling the > email works in the > background. > > db > > > -----Original Message----- > > From: news [mailto:[EMAIL PROTECTED]]On Behalf Of V. Cekvenich > > Sent: 03 December 2002 22:27 > > To: [EMAIL PROTECTED] > > Subject: Re: Emails > > > > > > One thing to consider..... if you like MVC. > > > > What I do is save e-mail to an e-mail table in DB. > > Then I have a console async process in a cron job select > all e-mail that > > was not flaged as sent. > > > > (I also do RSS same way). > > > > It just works better form me this way. > > > > .V > > > > VEDRE, RANAPRATAP REDDY wrote: > > > sending a mail from struts action is no different from > sending a mail from > > > any HttpServlet. > > > > > > u can use JSTL mail library if u want to do it in jpp , > but the best option > > > would be to use JavaMail API as u want inside a servlet. > > > > > > -rana. > > > > > > > > > > > > -----Original Message----- > > > From: Wendy Cameron [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, December 03, 2002 4:42 PM > > > To: Struts Users Mailing List (E-mail) > > > Subject: Emails > > > > > > > > > How do you send an email from inside a servlet using the > struts framework? > > > > > > Does anyone know of some sample code etc? or a good tutorial? > > > > > > Regards Wendy > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > -- > > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

