Re: javax.mail.MailingException: already connected
Posted By:
Michael_Wax
Posted On:
Wednesday, May 9, 2001 08:28 PM
You are connecting the Transport twice. The documentation for the Service classes (Store and Transport) specifies that they should throw an exception if their connect method is invoked when they are already connected. (You did not do invoke close between the two connects.) The second connect is unnecessary at best. As you note, commenting it out will make your code work.