Does the Transport.send() method block until the STMP mail transaction is completed?

Michael Wax

The Sun SMTPTransport class does block. Further, the JavaMail Guide for Service Providers also does not specify that the send method not block. Therefore, if you are concerned that you might not get a timely return, you would be prudent to spawn a new thread.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact