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. In this code what should i add in place of "y
View Tutorial          By: manju at 2011-11-10 09:01:50

2. HI can you send "send sms" program throg
View Tutorial          By: manav at 2010-05-09 12:54:52

3. Artical is good but it is not clearly define that
View Tutorial          By: Rohit Saxena at 2010-09-02 04:00:11

4. i need help in java
View Tutorial          By: arjun tanwar at 2010-02-17 20:58:55

5. short and simple program
hel

View Tutorial          By: sourabh agrawal at 2012-10-16 04:55:27

6. sir, i want get the SCJA certification. how to rig
View Tutorial          By: john basha at 2012-12-16 07:13:46

7. This example really works and help a lot me to dis
View Tutorial          By: Monu Kumar at 2010-03-30 09:26:23

8. BEST COMMENT EVER:
"Reading the above

View Tutorial          By: Mr.X at 2013-10-02 16:31:42

9. how do i get the java tutorial material...
View Tutorial          By: Muruga at 2012-10-29 21:10:17

10. why we user serialization
View Tutorial          By: sonia at 2011-12-08 08:25:25