Solved

java mail error

Posted on 2004-09-08
4
841 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to monitor tomcat's heap usage? 2 115
FMS9 install on Yosemite, can't get Deployment Wizard to run 7 257
websphere 8 listener 3 74
Setup GlassFish 4 22
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
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.…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

830 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