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. can for statement be used in a switch statement fo
View Tutorial          By: Osei Quadwo at 2014-10-08 20:12:17

2. Cordial saludo, muchas gracias por ola ayuda pero
View Tutorial          By: Hernan Camilo Martínez at 2014-04-09 20:08:17

3. Simple and to the point. Thanks for this tutorial.
View Tutorial          By: Balvinder at 2008-08-03 04:40:05

4. Hey guys it's working. If not then remove p.waitFo
View Tutorial          By: dileep at 2013-01-04 19:51:38

5. Gracias. Ya me estaba poniendo nervioso. No pod&ia
View Tutorial          By: Manuel at 2015-07-30 11:34:54

6. i want to SCJP exam ,tell how to apply for this ex
View Tutorial          By: PRABAKARAN at 2013-07-16 13:32:50

7. this is no doubt a simple program for the learner
View Tutorial          By: shweta at 2008-07-12 01:18:59

8. Great tutorial. THX.
View Tutorial          By: Velvetin at 2009-03-21 11:05:19

9. this site is so good...... How can we create a mp4
View Tutorial          By: vikram raj at 2011-01-05 01:03:07

10. Thank you very much for your help!!
View Tutorial          By: Ajay Singh at 2009-10-21 22:17:21