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 applications and we have 
an audit trail for emails sent.

hth,

robert

> -----Original Message-----
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 18, 2004 12:14 PM
> To: Struts User List
> Subject: sending emails from a struts app
> 
> 
> I need to send out emails from a struts app.
> 
> Any comments on the best way to go about this?
> 
> As sending mail can be slow, is there an easy way to do this in the
> background?
> 
> What happens if a client cancels a request part way through? is there any
> way to handle this / ignore cancels?
> 
> Daniel.
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to