Transport.send hangs up
801651May 25 2011 — edited May 26 2011I 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.