Hi all,
i’ve a Java agent that should connect to an external SMTP server through SSL port (465) to send a mail, using JavaMail API.
Using the same code in a standalone java class (using Eclipse) all works fine! Using agent, it try to connect to port 465 but it’s locked here. This is the debug line:
DEBUG SMTP: trying to connect to host “XXX.legalmail.it”, port 465, isSSL false
and nothing else happen…
Note: XXX is only for privacy…
No proxy/firewall.
Can anybody help me?
thx in advance
Andrea
Subject: Looks like Outbound SMTP isn’t configured for SSL…
Refer to the topics “Setting up SSL for Notes or Domino using SMTP” and “Changing outbound SMTP port settings” in the Lotus Administrator Help Database to confirm it-is configured.
Subject: SOLVED
Was a problem of using SSL_FACTORY in my agent, like this:
private String SSL_FACTORY = “javax.net.ssl.SSLSocketFactory”;
…
…
props.put(“mail.smtp.socketFactory.class”, SSL_FACTORY);
but this only works with JVM 1.4 or later…
HTH
thanx
Andrea