File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

enabled SSL + TLS

Adrien Ruffie
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I'm a beginner in JavaMail, I have several question, can I use following case:

SMTP + TLS + Authentication
SMTP + TLS + without Authentication
SMTP + Authentication + without TLS


SMTP + SSL + TLS + Authentication
SMTP + SSL + TLS + without Authentication
SMTP + SSL + Authentication + without TLS

Because I have the following code, it's correctly work for send a mail with returned Transporter, but no with SMTP only, SMTP + SSL, SMTP + SSL + TLS.
I have the following exception for example:

javax.mail.MessagingException: Exception reading response;
nested exception is: Unrecognized SSL message, plaintext connection?

Can you give me use properties and means to correctly use SSL and TLS ?

Great thank !

Best regards


With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic