Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet & java mail

 
urarom sogard
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have to send emails from servlets but very often the messages are undelivered so i have to retransmit them. i decided to listen for the undelivered addresses and try again. this may be very time consuming. i want to try to start a thread to do this until the messages are delivered.
is this pseudocode corect??:
doPost()
{
...
out.println("SOME_HTML");
t = new ThreadMail;
t.start();// send mail and listen until is delivered
out.println("SOME_HTML");
....
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic