RE: sending emails from a struts app

2004-05-19 Thread Daniel Perry
duh... attachment seemed to get lost BackgroundSender.java follows: /* * Created on 19-May-2004 * */ package org.apache.commons.mail; import javax.mail.MessagingException; /** * A class to send messages in the background. Compose the mail as normal, then * use the static method: Backgro

RE: sending emails from a struts app

2004-05-19 Thread Daniel Perry
#x27;Struts Users Mailing List' > Subject: RE: sending emails from a struts app > > > daniel, > > perhaps here are some more ideas for you: > http://jakarta.apache.org/commons/sandbox/email/ > > Cheers, > Matze > > > -Original Message- > >

Re: sending emails from a struts app

2004-05-18 Thread Mark Lowe
e user is still there or not. This is what i want to acheive. I cant have the user submitting a request, and then stopping it part way through. Daniel. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: 18 May 2004 17:32 To: Struts Users Mailing List Subject: Re: se

RE: sending emails from a struts app

2004-05-18 Thread Robert Taylor
Daniel, we have several applications (both web and others) which send email for various reasons. We queue up the email messages in a database and allow a separate process to sift through the queue (every 30 seconds) and send any unsent messages. This way we avoid the threading issue in the appl

RE: sending emails from a struts app

2004-05-18 Thread Matthias Wessendorf
-Original Message- > From: Joe Hertz [mailto:[EMAIL PROTECTED] > Sent: 18 May 2004 17:52 > To: 'Struts Users Mailing List' > Subject: RE: sending emails from a struts app > > > > > This is what i want to acheive. I cant have the user submitting a &

RE: sending emails from a struts app

2004-05-18 Thread Daniel Perry
st' Subject: RE: sending emails from a struts app > This is what i want to acheive. I cant have the user > submitting a request, and then stopping it part way through. This is what you get. The browser simply says, "Do this". And you do. There is no Mechanism for the user to sa

RE: sending emails from a struts app

2004-05-18 Thread Joe Hertz
> This is what i want to acheive. I cant have the user > submitting a request, and then stopping it part way through. This is what you get. The browser simply says, "Do this". And you do. There is no Mechanism for the user to say, "No! Stop! Don't!". You may never get the request if there is a

RE: sending emails from a struts app

2004-05-18 Thread Paul-J Woodward
less of wether the user is still there or not. This is what i want to acheive. I cant have the user submitting a request, and then stopping it part way through. Daniel. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: 18 May 2004 17:32 To: Struts Users Mailing Li

RE: sending emails from a struts app

2004-05-18 Thread Daniel Perry
ve. I cant have the user submitting a request, and then stopping it part way through. Daniel. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: 18 May 2004 17:32 To: Struts Users Mailing List Subject: Re: sending emails from a struts app > I need to send out e

Re: sending emails from a struts app

2004-05-18 Thread James Mitchell
> I need to send out emails from a struts app. > > Any comments on the best way to go about this? Yes, use JavaMail: http://java.sun.com/products/javamail/ http://www.j2eeolympus.com/J2EE/JavaMail/JavaMail.jsp > > As sending mail can be slow, is there an easy way to do this in the > background?