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. thank you so much i satisfied for the tutorial in
View Tutorial          By: flick at 2010-09-24 21:10:59

2. thankyou
View Tutorial          By: gomu at 2014-07-08 09:19:13

3. This is the help full sites for diploma student
View Tutorial          By: Tanuja at 2013-08-11 09:41:55

4. Performance is low while working with BULK DATA
View Tutorial          By: kailash at 2009-07-17 06:11:55

5. please gave us simple difference between structure
View Tutorial          By: vishal at 2011-12-18 13:33:17

6. Hi, I am getting following exception while running
View Tutorial          By: Vasundhra at 2008-06-24 07:04:42

7. i fixed it already...

how can I get

View Tutorial          By: kathleen ashley at 2010-08-08 04:51:26

8. Thanks for this article. Now I can understand Iter
View Tutorial          By: Rajesh Kumar at 2010-12-14 03:27:25

9. Good hello world to start with struts2 provided yo
View Tutorial          By: Boby Thomas at 2009-04-01 22:25:03

10. can anybody tell me the full code for sending sms
View Tutorial          By: shikha at 2008-10-13 11:43:40