Link to home
Start Free TrialLog in
Avatar of she1
she1

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of sompol_kiatkamolchai
sompol_kiatkamolchai
Flag of Thailand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of illusionz70
illusionz70

you dont seem to have smtp server as it is pointed out above.
you need a smtp server to send mails