Comment on Tutorial - Sending Email from Java application (JavaMail sample program) By Narayanan
Comment Added by : Rod
Comment Added at : 2011-11-13 15:09:52
Comment on Tutorial : Sending Email from Java application (JavaMail sample program) By Narayanan
Hello, I have been using a very similar code on development of a email verification system. All have worked fine in local system (i.e. my computer) but now, when I deploy to production server I'm getting the following exception.
DEBUG: setDebug: JavaMail version 1.4.4
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtpout.mysmtpserver.ext", port 3535, isSSL false
DEBUG SMTP: EOF: [EOF]
DEBUG SMTP: could not connect to host "smtpout.mysmtpserver.ext", port: 3535, response: -1
javax.mail.MessagingException: Could not connect to SMTP host: smtpout.secureserver.net, port: 25, response: -1
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1922)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
This is just beyond my knowledge. I have tried changing the port to 25 but still get the same error. And again, works fine locally but crashes in server.
I would greatly appreciate it if you could at least give me a light here.
Thanks in advance.
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
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
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
MultiLevel Inheritance sample in Java
Archived Comments
1. Thanks !
View Tutorial By: Swaran at 2010-02-02 23:50:13
2. copy of h.sheld
View Tutorial By: vivek at 2011-08-31 13:12:36
3. i need full program for connect oracle to struts l
View Tutorial By: Munaver Basha at 2010-09-30 01:28:10
4. Support for serial ports is platform dependent and
View Tutorial By: Sal at 2009-09-15 15:51:55
5. extremely good
View Tutorial By: rahul at 2011-06-09 05:59:43
6. Hello sir pls send me
com.sun.speech.freett
View Tutorial By: shanthi at 2013-03-22 11:18:56
7. javax.microedition.io.ConnectionNotFoundException:
View Tutorial By: yellaiah at 2014-12-27 05:18:52
8. This will give the output check it out
View Tutorial By: shruthi at 2013-01-18 06:00:08
9. Hi can anyone help me out, i need a full jsp code
View Tutorial By: thangaraj at 2007-03-20 12:40:05
10. nice tutorial
View Tutorial By: Raman at 2014-11-13 07:47:11