dcsimg
"java.io.IOException: Stream closed" error when calling transport.send
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Richard_Johnstone
Posted On:   Tuesday, January 14, 2003 03:21 AM

Hi I am trying to send a mail using javamail from a servlet. It was all working all be it slowly so I have tried to run it in a seperate thread. Now when it gets to the final transport.send bit it falls over. What would cause the stream closed error? I call javamail like this :- public class mymail extends Thread { public void run() { sendMyMail() } } Then I just create an instance of the class and use the mymail.start method to fire it off as a new thread. Any Ideas?    More>>

Hi


I am trying to send a mail using javamail from a servlet. It was all working all be it slowly so I have tried to run it in a seperate thread. Now when it gets to the final transport.send bit it falls over. What would cause the stream closed error?



I call javamail like this :-



public class mymail extends Thread

{

public void run() {

sendMyMail()

}

}



Then I just create an instance of the class and use the mymail.start method to fire it off as a new thread.



Any Ideas?

   <<Less
About | Sitemap | Contact