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



Comment Added by : anith

Comment Added at : 2011-03-13 06:02:31

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 job
i seriously feel that this site i

View Tutorial          By: saurabh at 2012-01-17 05:28:32

2. it is possible to write any synchronisation progra
View Tutorial          By: shashi kant mishra at 2013-10-14 02:54:25

3. i want to know when we're importing a package , w
View Tutorial          By: bilal ahmad at 2013-02-14 14:11:24

4. I need more example........
View Tutorial          By: niyaz d at 2011-02-20 23:44:56

5. my quseation is why use we return statement

View Tutorial          By: pankaj kumar at 2010-08-31 03:53:48

6. excellent
View Tutorial          By: alok mishra at 2008-05-12 00:51:57

7. i need java simple programs
View Tutorial          By: Tharani at 2010-01-22 06:39:25

8. What is SMSC and CSCA number? , in which JAVA file
View Tutorial          By: sampath at 2009-06-19 07:01:31

9. I get theses errors and apparrently it cannot find
View Tutorial          By: Abhaya at 2013-02-20 22:42:18

10. very useful article. every jsp resource will get g
View Tutorial          By: pechirani at 2011-06-29 04:00:49