javaMail connect smtp host exception!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zebero_tsm
Posted On:   Monday, May 30, 2005 10:37 PM

I am trying to send a mail use JavaMail but I am getting an exception: Could not connect to SMTP host 25. But I use Outlook Express can sent the mail use the same smtp host?why ?

full exception as this:

Posted By:   zebero_tsm  
Posted On:   Monday, May 30, 2005 10:40 PM

javax.mail.MessagingException: Could not connect to SMTP host: smtp.126.com, port: 25;
nested exception is:
java.net.SocketException: Software caused connection abort: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1008)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:197)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at jmail.SendMail.msgSend(SendMail.java:34)
at jmail.SendMail.main(SendMail.java:9)
About | Sitemap | Contact