java mail error

in wls, i set the mail session properties to : mail.host=hotmail.com
when my applicaiton send out , it give the following error message. ps, i use outlook express,
and my mail host should be hotmail.com.


javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: hotmail.com, port: 25; nested exception is: java.net.NoRouteToHostException: Operation timed out: no further information
she1Asked:
Who is Participating?
 
sompol_kiatkamolchaiConnect With a Mentor Commented:
mail.host must be SMTP mail server which use for relay mail to recepient.
you can not use hotmail.com as SMTP since it is not SMTP.
generally, SMTP is a server that is in your private network.
please ask your network administrator for ip address or host name for SMTP.
or if you use modem to dial to ISP, you should contact your ISP for SMTP address.
0
 
sompol_kiatkamolchaiCommented:
Have you ever use outlook to send mail? If you use, you can look it in mail configuration in the E-mail Account menu.

Hope this help.
0
 
illusionz70Commented:
you dont seem to have smtp server as it is pointed out above.
you need a smtp server to send mails
0
 
illusionz70Commented:
0
All Courses

From novice to tech pro — start learning today.