Could you tell me why I am unable to send mail from my javamail client for gmail and yahoo. I am getting the error:
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
nested exception is:
java.net.SocketException: Connectiopn timedout...
I am able to connect to the mail server for my university and can send messages. But I cannot understand as to what the problem is with gmail and yahoo. I have tried using port 465 for gmail and 587 for yahoo. Also I am using authentication. Is it because the smtp server is not present at the links smtp.gmail.com and smtp.mail.yahoo.com or is it because they can only be accessed using a browser. I am really confused. Your help will be really appreciated!
Regards
Saguna
Regards
Saguna