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 Sockets and Internet Protocols and the fly likes imap over SSL connection problem 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 » Sockets and Internet Protocols
Bookmark "imap over SSL connection problem" Watch "imap over SSL connection problem" New topic

imap over SSL connection problem

Shilpa Tendulkar
Ranch Hand

Joined: Jul 29, 2001
Posts: 75

I'm trying to read exchange mailbox using javamail api but I'm unable to connect to server. I goggled it for quite some time and tried all things suggested but no luck. hope someone can point me in right direction
following is the exception I get
javax.mail.MessagingException: Unrecognized SSL message, plaintext connection?;
nested exception is: Unrecognized SSL message, plaintext connection?
at com.sun.mail.imap.IMAPStore.protocolConnect(
at javax.mail.Service.connect(
at comp.devexch.DevExch.main( //trying to connect at this line store.connect(...)
Caused by: Unrecognized SSL message, plaintext connection?
at com.sun.mail.iap.ResponseInputStream.readResponse(
at com.sun.mail.iap.Response.<init>(
at com.sun.mail.imap.protocol.IMAPResponse.<init>(
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(
at com.sun.mail.iap.Protocol.<init>(
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(
at com.sun.mail.imap.IMAPStore.protocolConnect(
... 2 more

and code is

Thank you.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: imap over SSL connection problem
Similar Threads
IMAP /TLS standalone programm works fine, in Tomcat fails.
JavaMail and security
unknown host exception error
Problem using Java Mail API
JavaMail imap connection