javaMail问题

java mail test

信息: Initialize action of type: com.bob.struts.action.SendTextMailAction

DEBUG: setDebug: JavaMail version 1.3.1

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]

DEBUG SMTP: useEhlo true, useAuth true

DEBUG SMTP: trying to connect to host "STMP.163.com", port 25



javax.mail.MessagingException: Could not connect to SMTP host: STMP.163.com, port: 25;

  nested exception is:

    java.net.ConnectException: Connection timed out: 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)



问题怎么解决呀?

我把源文件上传了,麻烦大家给我看看,相互学习

你可能感兴趣的:(java,.net,struts,sun)