dcsimg
getting exception in sending Email
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Muhammad_Salman
Posted On:   Wednesday, August 1, 2007 02:13 AM

I am trying to send Email using JavaMail but getting the following exception.

javax.mail.MessagingException : could not connect to smtp host :

mail.vu.edu.pk , port : 25

nested exception is : java .net.ConnectException : connection refused

, When I change the smtp host to mail.yahoo.com and used the same code I get the exception

java.net.ConnectException: Connection time out : connect

Please tell me the possible reasons and remedy.

Thanks.

About | Sitemap | Contact