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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. hey dude
im using vb.net 2008 and sql serv
View Tutorial By: Haseeb ur Rehman at 2010-11-12 02:08:48
2. excellent information is provided to you sir try t
View Tutorial By: Raghav at 2007-12-16 05:03:53
3. Dude, u xplaining lyk u already telling pros!Pls t
View Tutorial By: Brianjambo at 2009-04-14 06:32:13
4. Great example. To reset the initial value on readb
View Tutorial By: Bala at 2014-07-22 04:48:34
5. your second last example in above code (Character
View Tutorial By: rupam shaw at 2013-04-24 08:36:05
6. tnx, nice code...
View Tutorial By: Hansoc at 2009-08-18 00:17:58
7. Thanks, you save my day!
View Tutorial By: ivex at 2015-06-25 20:20:07
8. Very Very nice code
View Tutorial By: Kits at 2009-05-26 07:54:46
9. Question: if clone is a protected method then why
View Tutorial By: siva kiran at 2011-01-20 11:40:23
10. Thank you so much. I have migrated from the .NET t
View Tutorial By: kanika at 2011-05-31 12:23:33