Solved

java mail error

Posted on 2004-09-08
4
838 Views
Last Modified: 2013-12-10
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
Comment
Question by:she1
  • 2
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
sompol_kiatkamolchai earned 50 total points
ID: 12006242
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
 
LVL 11

Expert Comment

by:sompol_kiatkamolchai
ID: 12006250
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
 
LVL 4

Expert Comment

by:illusionz70
ID: 12013811
you dont seem to have smtp server as it is pointed out above.
you need a smtp server to send mails
0
 
LVL 4

Expert Comment

by:illusionz70
ID: 12013929
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now