Search code examples
outlookmapioutlook-redemption

Does Office 365 support standalone MAPI calls


Is it possible to create an RDOSession with Office 365 without having Outlook installed (I have installed Microsoft Messaging API and Collaboration Data Objects on the computer in question)

I am trying to use

RDOSession := RedemptionLoader.new_RDOSession;
RDOSession.LogonHostedExchangeMailbox('<SMTPAddress>', '<Username>', '<password>');

but I get the ERROR_WINHTTP_NAME_NOT_RESOLVED error.


Solution

  • You can, but Exchange 2016 and 2019 explicitly refuse connections coming from the standalone version of MAPI (whcih does not support MAPI-over-HTTP).

    But in your particular case, it sounds like the error occurs even before configuring the MSEMS provider, when Redemption attempts to retrieve the autodiscover XML to configure the profile and one of the possible urls constructed from the SMTP address cannot be resolved. In most cases that would be fine, since Redemption can attempt to retrieve the autodiscover XML from multiple source.