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. no output is shown
View Tutorial          By: shubham bansal at 2015-02-21 15:36:31

2. its gud 2 learn java sim prog
View Tutorial          By: Rakesh at 2009-10-04 03:47:01

3. its cool, you've cleared me.
View Tutorial          By: zealous at 2013-09-10 17:40:26

4. Hi, I need the complete working code for recieving
View Tutorial          By: Issam at 2008-09-26 01:24:04

5. Your site is a really big help. Straight to point
View Tutorial          By: Mark Anthony Santos at 2008-12-16 22:03:57

6. Look this framework (https://code.google.com/p/lin
View Tutorial          By: Mariane at 2013-07-04 14:27:52

7. guys i am getting this error..plz tell me the solu
View Tutorial          By: Ajit at 2010-06-17 07:38:51

8. I Want more Advanced Case Shown...
I Know E

View Tutorial          By: Electron at 2009-11-23 02:32:07

9. It's very helpful to me... Thanks...
View Tutorial          By: Nicks Patel at 2010-03-24 23:37:04

10. thanku this is very good example
View Tutorial          By: priyanka at 2012-10-02 13:08:49