Can we access mail folders of outlook in Windows service? How?

狂风中的少年 提交于 2019-12-11 20:32:03

问题


I have created outlook addin in C# to sync mails from our website. Now I want to sync those mails after some time interval in background. Can we access mail folders of outlook into the windows service so that I can refresh the mails.


回答1:


Outlook Object Model cannot be used from a service. You can use

  1. Extended MAPI (C++ or Delphi only)
  2. Exchange Web Services if you are dealing with Exchange 2007 (or newer) mailboxes
  3. Redemption (its RDO family of objects wraps Extended MAPI and can be used from any language).


来源:https://stackoverflow.com/questions/26099753/can-we-access-mail-folders-of-outlook-in-windows-service-how

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!