users@glassfish.java.net

Re: Setup of Glassfish Email to use remote server and Port

From: <glassfish_at_javadesktop.org>
Date: Thu, 03 Apr 2008 15:55:06 PST

That assumption (about JSSE for Sun's JDK) should be correct.

Can you try smtps instead, e.g.

    Transport trans = theSession.getTransport("smtps");

You probably also need to change your resource's smtp properties to use "smpts" as well.

When you start w/ smtp, it is probably using TLS to switch a regular socket to SSL and something is falling down somewhere. (Debugging the connection code might indicate the responsible party and the reason for the socket failure, but I have run out of speculative ideas at this point). Using smtps directly may bypass all this trouble.
[Message sent by forum member 'peterwx' (peterwx)]

http://forums.java.net/jive/thread.jspa?messageID=267657