Solved

Java Mail

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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
object oriented programming comparison 5 77
couple of eclipse 5 46
going to wrong jsp page 2 33
collection output issue 9 37
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

829 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