Solved

Java Mail

Posted on 2003-10-27
5
266 Views
Last Modified: 2013-11-24
Hi Experts,

I am trying my first look @ Java Mail and I keep getting the below exception

avax.mail.SendFailedException: Sending failed;
  nested exception is:
      javax.mail.MessagingException: Could not connect to SMTP host: smtp.mail.yahoo.com, port: 25;
  nested exception is:
      java.net.ConnectException: Connection refused: connect
      at javax.mail.Transport.send0(Transport.java:219)
      at javax.mail.Transport.send(Transport.java:81)


Can some body help me with a simple working example of Java Mail Program..

Thanks
- C
0
Comment
Question by:chandu33
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 63 total points
ID: 9628995
You may need to authenticate. See http://java.sun.com/products/javamail/FAQ.html
0
 
LVL 6

Expert Comment

by:mightyone
ID: 9629656
www.icemail.org


java based client with examples and libs
0
 
LVL 4

Assisted Solution

by:kalosi
kalosi earned 62 total points
ID: 9629843
Maybe you are blocked by your local firewall. When you try the command
CMD> telnet smtp.mail.yahoo.com 25

does it work ?? you should see the SMTP server welcome banner.

david
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SequenceInputStream example 3 39
Java 8 to Java 6 8 44
wild fly 8 startup error 2 83
Java regex 5 22
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

710 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