Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 849
  • Last Modified:

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
0
she1
Asked:
she1
  • 2
  • 2
1 Solution
 
sompol_kiatkamolchaiCommented:
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now