Comment on Tutorial - Sending Email from Java application (JavaMail sample program) By Narayanan



Comment Added by : charan

Comment Added at : 2011-10-20 12:59:59

Comment on Tutorial : Sending Email from Java application (JavaMail sample program) By Narayanan
hai, i tried the abvoe code, m getting the follwing errors... please help me...
javax.mail.SendfailedException: sending failed;
nested exception is:
java.mail.messagingexception; could not connect to SMTP host :localhost,port:25;

nested exception is:
javax.net.connectexception: connection refused:connect
at javax.mail.transport.send0(transport:java:219)
at javax.mail.transport.send(transport:java:81)
at sendemail.main(sendemail.java;49)


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Great work ;)
View Tutorial          By: Rizwanulla Sharieff at 2012-08-21 04:42:41

2. What is the difference between an Interface and an
View Tutorial          By: RAJA at 2015-06-26 17:28:31

3. good
View Tutorial          By: yeoh at 2009-04-18 21:32:36

4. i need scjp questions and information
View Tutorial          By: raja at 2010-03-29 08:05:35

5. good.
View Tutorial          By: Karthik at 2007-10-20 07:03:20

6. It's really helpful , thanks a lot
View Tutorial          By: Avijit at 2009-09-08 05:18:39

7. Can i have CreateAddressBook.java?? really need it
View Tutorial          By: KIM at 2012-12-02 11:45:20

8. I'm getting the following error even after several
View Tutorial          By: Joe85 at 2011-03-18 08:58:04

9. Hi I have Fixed - "NoSuchPortException"
View Tutorial          By: vijay at 2011-02-19 01:44:37

10. Great!! But when I use wscompile to create stub,I
View Tutorial          By: Baven at 2008-07-22 15:55:52