SMTP with SSL or TLS does not work "Wrong host or port"

Hi @elements77
It's very rare that SSL/TLS are on the same port as plain 25.
Firewall can definitely be the problem, so can antivirus software. Just because something works in Powershell doesn't mean that firewall/antivirus doesn't interfere with the Java process.
If nothing works, then have a look here I can't configure SMTP Gmail - #7 by yihongz