Java Mail mystery - SMTP blocked?

后端 未结 6 1228
孤城傲影
孤城傲影 2020-12-09 05:40

I have a Java program which uses javax.mail to send an SMTP message. This program works fine on a Linux box, I want to emphasize that beforehand. When I try this same cod

6条回答
  •  佛祖请我去吃肉
    2020-12-09 05:58

    Although this issue is solved: it might still be useful to point out that some Windows Firewalls block/allow access to ports based on the executable name (rather than purely the port number itself) - so you can end up with one program (say Outlook) being allowed and another (say Java) being blocked.

提交回复
热议问题