vjk
vjk

Reputation: 2283

java email connect method

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...

Upvotes: 0

Views: 197

Answers (1)

MarioDS
MarioDS

Reputation: 13063

Your company network has a firewall that blocks connection to Gmail on the port you have specified in your code.

Upvotes: 1

Related Questions