Mehul Kumbhani wrote:Thanks for your kindly reply,
But sir i hava not knowledge of how to use telnet from java and netbeans,
can you suggest me.
No, telnet is a utility application that comes with most operating systems. Assuming you're using Windows, go to Start -> Run, then enter
telnet.exe smtp.gmail.com 25 and hit return. If you get a
hello message from the SMTP server, then you are ale to connect. To get out, just type
quit and hit return.
If, however, it hangs or gives you a
connection refused error, then you are not able to connect.