Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Transport.send hangs up

801651May 25 2011 — edited May 26 2011
I send an email once in a while from my web application on a virtual dedicated server. The email always gets sent, but sometimes Transport.send hangs up. Java processing just stops at that statement.

Here is the debug output:

2011-05-25 07:11:19.281
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "s2smtpout.secureserver.net", port 25, isSSL false

There is no more output.

Here is the debug output for a second email that was also sent. In this case, Java processing was successfully and did not stop at Transport.send:

2011-05-25 07:36:53.232
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "s2smtpout.secureserver.net", port 25, isSSL false
220 p3plsmtps2ded01-02.prod.phx3.secureserver.net ESMTP
DEBUG SMTP: connected to host "s2smtpout.secureserver.net", port: 25

The debug output continues.

What could be causing the problem with Transport.send in the first case? Any help would be very much appreciated. Thanks.
This post has been answered by Bill Shannon-Oracle on May 25 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 23 2011
Added on May 25 2011
4 comments
4,946 views