Skip to content
Advertisement

javax.mail.MessagingException: Connect timed out; [closed]

I need to fetch the Zoho mail using Java. I enabled imaps in Zoho mail settings, but I am getting “javax.mail.MessagingException: Connect timed out” error in the following code.

JavaScript

The error:

JavaScript

Advertisement

Answer

My system has been connected to the office wifi network.So the firewall didn’t allow me to connect to the port.When I switch my wifi network ,the program runs perfectly !

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement