我们可以在Windows服务中访问Outlook的邮件文件夹吗?如何? [英] Can we access mail folders of outlook in Windows service? How?
本文介绍了我们可以在Windows服务中访问Outlook的邮件文件夹吗?如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在C#中创建了Outlook加载项,以同步来自我们网站的邮件.现在,我想在后台经过一段时间后同步这些邮件.我们能否将Outlook的邮件文件夹访问到Windows服务中,以便我可以刷新邮件.
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.
推荐答案
不能从服务中使用Outlook对象模型.您可以使用
Outlook Object Model cannot be used from a service. You can use
- 扩展的MAPI(仅C ++或Delphi)
- Exchange Web服务如果要处理Exchange 2007(或更新版本)邮箱
- 兑换(其
- 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).
这篇关于我们可以在Windows服务中访问Outlook的邮件文件夹吗?如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文