How can we usse EWS managed API for connecting to Exchange Online via IMAP protocol?

Mahesh Tibrewal 51 Reputation points

We have an application which already using EWS managed API to connect to outlook emails via EWS. Currently, we are implementing authenticating through OAuth for both IMAP and EWS. For EWS, the API methods are working fine. However, when we are trying to connect using IMAP protocol, we are constantly getting the error "The response received from the service didn't contain valid XML" for FindItems method and others. URL for connecting to exchange service used is "".

Hence, wanted to if there is any way we can use EWS managed API for IMAP and if not what can be the probable solution for that.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,047 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lydia Zhou - MSFT 2,371 Reputation points Microsoft Employee

    @Mahesh Tibrewal

    Based on your description, your issue is about EWS managed API and Exchange Server Development. However, Exchange Server Development is currently not supported in the Q&A forums, the supported products are listed over here: (more to be added later on).

    For the related questions about Exchange Server Development you can ask in here Exchange Server > Exchange Server Development.

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments