This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes enabled SSL + TLS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "enabled SSL + TLS" Watch "enabled SSL + TLS" New topic
Author

enabled SSL + TLS

Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
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

and

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:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?


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

Great thank !

Best regards

Adryen



SCJP 5, SCDJWS 5
http://adrien-ruffie.blogspot.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: enabled SSL + TLS
 
Similar Threads
send email using gmail account
smtp mail server
sending mail with JavaMail
Encountering SMTPSendFailedException with SendMailServlet
Gmail and port 465 vs. port 587