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. an excellentttttttt siteee
View Tutorial          By: raza at 2011-04-02 10:39:46

2. HI . i got the following exception while start up
View Tutorial          By: Ramesh at 2011-02-01 00:14:14

3. Its really helpfull to me thanks................
View Tutorial          By: AKS at 2013-08-10 06:27:43

4. This does not work in following case :
Cli

View Tutorial          By: Amardeep at 2010-01-20 05:59:21

5. can for statement be used in a switch statement fo
View Tutorial          By: Osei Quadwo at 2014-10-08 20:12:17

6. i know this example this is in mg.hill but i want
View Tutorial          By: srikanta at 2009-11-18 00:06:57

7. nice///
View Tutorial          By: MHARLON ALADEN at 2009-08-14 01:00:09

8. please help me to do find a push and pop operation
View Tutorial          By: sweet mae at 2011-01-14 00:01:33

9. Guys,

Please explain detail steps w

View Tutorial          By: Parthasarathy at 2010-06-02 08:13:12

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