• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

servlet & java mail

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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");
....
}
 
reply
    Bookmark Topic Watch Topic
  • New Topic