wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes JavaMail TLS email Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JavaMail TLS email" Watch "JavaMail TLS email" New topic
Author

JavaMail TLS email

Rob Proesmans
Greenhorn

Joined: Aug 16, 2012
Posts: 8
Hello, I am searching for almost 5 hours how to send an non-authenticated/authenticated email through javamail with gmail as SMTP server.
I do not want to use SSL but I rather prefer TLS.

The problem is, that i keep having this error:

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

here is my code:

i don't understand why it keeps saying this error.
please can anybody help me out? (I have the mail.jar & activation.jar in my lib)
Rob Proesmans
Greenhorn

Joined: Aug 16, 2012
Posts: 8
omg, this is not real, i want to jump out of my window, i just had to restart netbeans ==> problem fixed

wanna cry now
 
 
subject: JavaMail TLS email
 
Similar Threads
JSP using javamail
JSP Email
JavaMail Session cannot be resolved to a type
Email in jsp
Email with jsp