aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "send E-mail in background" Watch "send E-mail in background" New topic
Author

send E-mail in background

ramji srinivasan
Greenhorn

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 process...is there anyway we can send the e-mail in background after saving the record...how can we seperate the process...

please suggest a suitable solution..
Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
Start a seperate thread.


http://www.goodercode.com
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 ?

-Sudhakar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: send E-mail in background