简体   繁体   English

使用C#以编程方式从outlook中读取邮件

[英]Reading mails from outlook programmatically using C#

I am trying to create a program that reads my mail from Microsoft Outlook so that I can move them into different folders based on thier contents. 我正在尝试创建一个程序,从Microsoft Outlook中读取我的邮件,以便我可以根据其内容将它们移动到不同的文件夹中。 I am using Microsoft.Office.Interop.Outlook 12.0, which works fine with Outlook 2007. 我正在使用Microsoft.Office.Interop.Outlook 12.0,它可以与Outlook 2007一起使用。

How do I handle scenario where another user uses Outlook 2010? 如何处理其他用户使用Outlook 2010的情况?

Do you need to use C#? 你需要使用C#吗? If you don't need to use C#, you can open one of the messages that you need to move and click on "add rule". 如果您不需要使用C#,则可以打开需要移动的其中一条消息,然后单击“添加规则”。 There you can define rules to, for example, move all mail from your boss into a folder called work. 在那里,您可以定义规则,例如,将您老板的所有邮件移动到名为work的文件夹中。 I don't see why you need to use C#. 我不明白为什么你需要使用C#。 It would be very difficult to do that in C# except simulating mouse movements... 除了模拟鼠标移动之外,在C#中这样做是非常困难的...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM