This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android this week in the Android 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.
Consider Paul's rocket mass heater.
subject: imap over SSL connection problem
It's not a secret anymore!