[英]How can I mark Mail as read in MS Outlook2010?
I am developing an application, in which I need to read the content (mail body) of the incoming mail. 我正在开发一个应用程序,需要在其中读取传入邮件的内容(邮件正文)。 For this, I am using below code to trigger the event, every time when new mail comes -
为此,每次收到新邮件时,我都会使用以下代码触发事件-
outLookApp.NewMailEx += new ApplicationEvents_11_NewMailExEventHandler(MailExtractor.outLookApp_NewMailEx);
I am using MS outlook2010? 我正在使用MS Outlook2010吗?
How can I mark Mail as read those are going through this application? 我如何将邮件标记为已读通过此应用程序的邮件?
You need to set the UnRead
property of the Outlook MailItem
您需要设置Outlook
MailItem
的UnRead
属性
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook._mailitem.unread(v=office.14).aspx http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook._mailitem.unread(v=office.14).aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.