Sir,when i run this code.I'm getting the following exception
Exception in thread "main" javax.mail.MessagingException: could not connect to SMTP host:124.123.89.30, Port No:25;
caused by java.net.SocketException: Network is unreachable: connect
For the Java code above to work, it should have SMTP server setup on host (192.168.10.205 in your case). I want to send a mail using Java with host value as "localhost". Can you please tell me how to setup SMTP server on Windows 7 professional?
I want to send mail using Java with host value as "localhost". I suppose you have SMTP server setup on 192.168.10.205 server. Can you please tell me how to setup SMTP server on localhost?
Sending message using java mailsandeep May 30, 2011 at 10:51 AM
Sir,when i run this code.I'm getting the following exception Exception in thread "main" javax.mail.MessagingException: could not connect to SMTP host:124.123.89.30, Port No:25; caused by java.net.SocketException: Network is unreachable: connect
How to install SMTP in local system?Kishan Khatanhar February 25, 2013 at 5:52 PM
For the Java code above to work, it should have SMTP server setup on host (192.168.10.205 in your case). I want to send a mail using Java with host value as "localhost". Can you please tell me how to setup SMTP server on Windows 7 professional?
How to setup SMTP server on localhost?kishan Khatanhar February 25, 2013 at 6:28 PM
I want to send mail using Java with host value as "localhost". I suppose you have SMTP server setup on 192.168.10.205 server. Can you please tell me how to setup SMTP server on localhost?
I got errorsantosh January 14, 2012 at 11:13 AM
I executed the above code but i got error saying that connection is refused? How to solve it.
error messagerahul March 11, 2012 at 8:30 PM
Could not connect to SMTP host error i am getting . please help
errorPrashant July 7, 2012 at 6:35 PM
Exception in thread "main" java.lang.NoClassDefFound Error: SendMail
Post your Comment