Search code examples
c#windows-servicesoutlook-addinoutlook-redemption

Is it possible to access redemption method of outlook add in using windows services


I have created outlook addin in C# to storing mail subjects in SQLite database using redemption(background). Can we access redemption method/Class of outlook add in into the windows service.

Outlook Object Model cannot be used from a service.


Solution

  • Do not use Outlook Object Model in a service. Secondly, you are assuming that you only have ContactItem objects in the folder, your code will break if there is a distribution list there.

    The RDO family of Redemption objects can be used in a service