Solved

Java Mail

Posted on 2003-10-27
5
267 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

626 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