Connection to Office 365 by EWS API

前端 未结 2 1832
春和景丽
春和景丽 2020-12-03 10:40

I am using EWS API in my console application to process mailbox items and my connection script looks like

ExchangeService service = new ExchangeService(Excha         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 11:06

    I know this is a fairly old solution, but it was still very helpful to me. I have a few tools that worked with the "normal" network version of Exchange, but so far my tests with Exchange Online failed (i got errors like "The Autodiscover service couldn't be located", etc).

    Essential here is to use WebCredentials instead of NetworkCredential and a e-mailaddress instead of a username.

提交回复
热议问题