aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
I agree. Here's the link:
subject: imap over SSL connection problem
Similar Threads
IMAP /TLS standalone programm works fine, in Tomcat fails.
JavaMail imap connection
Problem using Java Mail API
JavaMail and security
unknown host exception error