Java agent to connect to smtp server

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…:slight_smile:

No proxy/firewall.

Can anybody help me?

thx in advance

Andrea