• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

JavaMail TLS email

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
omg, this is not real, i want to jump out of my window, i just had to restart netbeans ==> problem fixed

wanna cry now
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!