0

I am using the same code that is in here : How can I send an email by Java application using GMail, Yahoo, or Hotmail? for sending an email. Its calling the transport.connect(...) and never coming out of that method call. This is happening only when I am in my company network. When I run the same program from a different network its working fine.

I tried to do run it using both wired and wireless connection, but it didn't actually make any difference.

Any reason why it is not coming out of the transport.connect method...

4

1 回答 1

1

您的公司网络有一个防火墙,该防火墙会阻止您在代码中指定的端口上连接到 Gmail。

于 2012-12-13T22:51:23.237 回答