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



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. Nice example. I think this is more idiomatic tho'.
View Tutorial          By: John Morrison at 2010-03-28 14:55:07

2. Thank you... Helpful :)
View Tutorial          By: Soopy at 2015-03-31 06:24:57

3. I want to using swith with string...
How to

View Tutorial          By: anuj at 2015-03-04 18:22:29

4. Thanks a lot :-) It is very informative
View Tutorial          By: praveen at 2010-05-03 22:17:19

5. pls help me .....its hard to understand for me th
View Tutorial          By: heidi at 2010-06-27 02:31:29

6. A very nice example for abstract classes, simple b
View Tutorial          By: Rahul at 2010-06-16 20:45:24

7. very very useful..thank you
View Tutorial          By: sridaran at 2009-03-21 00:45:21

8. it is nice but please give simple example like are
View Tutorial          By: red at 2009-12-03 23:07:37

9. You explained the this Keyword very well.
&

View Tutorial          By: Karan at 2012-12-04 11:27:35

10. If you are working with the multi-threaded program
View Tutorial          By: it career at 2010-02-24 00:13:50