Solved

Java Mail

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
what is a "java.lang.System Property"   ? 20 65
Java DateChooser? 3 36
table example 4 29
String array comparison 4 32
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

776 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