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. This is very clear and explains the concepts in a
View Tutorial          By: Reite at 2011-02-18 13:55:07

2. This is very good Article. On high level I am anba
View Tutorial          By: Sandeep at 2010-08-27 00:40:22

3. Dear sir i am complete my B.Tech in this year but
View Tutorial          By: Sarvesh at 2012-04-17 15:16:46

4. is anyone going to post the complete version of th
View Tutorial          By: anon at 2009-04-21 12:26:51

5. Thanks dude its really helpful. it clears my doubt
View Tutorial          By: Sriram at 2009-12-28 05:54:37

6. Sir, can you give me an example of Isalnum in java
View Tutorial          By: Angeline at 2011-07-13 06:43:54

7. I am very much thankfull to you in providing the c
View Tutorial          By: c vijaychandar at 2010-05-05 10:14:59

8. plz answr for questions about time out problem whl
View Tutorial          By: rrai at 2013-08-26 06:06:57

9. main is not needed for a simple program...

View Tutorial          By: manoj at 2012-05-29 17:46:08

10. That's a very nice and simple article,
Tha

View Tutorial          By: Mohsen at 2009-10-11 03:07:18