Comment on Tutorial - Sending Email from Java application (JavaMail sample program) By Narayanan



Comment Added by : Barabas

Comment Added at : 2010-02-11 03:57:09

Comment on Tutorial : Sending Email from Java application (JavaMail sample program) By Narayanan
When copying this code into my java IDE, should i configure any thing else in my conputer?
The IIS smtp server ?

I'm lost here because the code does't work with me and throwing this exception:

javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port:25;
nested exception is:
java.net.ConnectException: Connection timed out: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1706)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:525)
at javax.mail.Service.connect(Service.java:313)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at javax.mail.Transport.send0(Transport.java:190)
at javax.mail.Transport.send(Transport.java:120)


View Tutorial



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. i want to know when we're importing a package , w
View Tutorial          By: bilal ahmad at 2013-02-14 14:11:24

2. Help Me

I just run the ListPorts.ja

View Tutorial          By: srinivas at 2009-04-06 03:14:57

3. This example of function overloading is easy for U
View Tutorial          By: Pranay Gaikwad at 2012-10-30 14:02:15

4. Tnx. Very fast learning i think.
Just make

View Tutorial          By: mahdi at 2011-07-09 20:20:39

5. very nice..!
View Tutorial          By: neeraj at 2012-04-21 11:12:08

6. thanks! it helped!
View Tutorial          By: shgy at 2015-03-17 07:42:40

7. Write a times table programme. The programme shoul
View Tutorial          By: Hannah Jambalos at 2014-09-03 12:07:34

8. HI Friends,

I am new to java and i

View Tutorial          By: Srini at 2015-04-05 17:00:58

9. Hi,

Is there a variable like GroupN

View Tutorial          By: SUNNYben at 2012-04-05 09:32:14

10. hi can u send me the complete working code for sen
View Tutorial          By: Brajesh at 2011-04-21 03:07:40