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
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.
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
2. I am not able to open the rar file, can you please
View Tutorial By: Chandra at 2008-08-07 10:35:59
6. Only first row is exported, help to export all the
View Tutorial By: Achyut at 2014-12-18 04:26:26
7. Sir , I am doing BCA . I want to know more about j
View Tutorial By: sandeep Namdev at 2008-09-16 05:47:22
8. hi in the above example u created a example for do
View Tutorial By: akki at 2013-02-22 06:19:14
9. Nice explanation. And a good example to back it up
View Tutorial By: fazil at 2009-07-29 00:32:03