The moose likes Struts and the fly likes send E-mail in background Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "send E-mail in background" Watch "send E-mail in background" New topic

send E-mail in background

ramji srinivasan

Joined: Aug 22, 2005
Posts: 11
i have a form which has a "Send Mail" checkbox option which sends a mail to the selected members after saving a particular record...

my problem is sending mail option slows down the record saving there anyway we can send the e-mail in background after saving the can we seperate the process...

please suggest a suitable solution..
Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
Start a seperate thread.
SCJP 1.4
Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
Launch the email sending class with a seperate thread.
sudhakar Tadepalli
Ranch Hand

Joined: Dec 27, 2001
Posts: 130
What if the user wants a confirmation about sent email ? can we get back to the user if we use another thread ?

I agree. Here's the link:
subject: send E-mail in background
It's not a secret anymore!