问题
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
- Extended MAPI (C++ or Delphi only)
- Exchange Web Services if you are dealing with Exchange 2007 (or newer) mailboxes
- 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