【发布时间】:2013-06-17 21:59:29
【问题描述】:
我正在使用 VSTO (visual studio 2010) 为 Outlook 2010 开发一个插件。我正在处理邮件项目并希望获得新的电子邮件属性并在发送新电子邮件时在某些条件下做一些工作,我可以获得一些属性,例如subject、body、To、CC、@ 987654325@,Category。但我无法获得一些属性,例如"From"、Attachment (have or not)、attachment size and name、checked as high importance or not、checked as sensitivity or not、request delivery、request read recipt... 和其他一些属性....
以下是我使用的代码:
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
Application.ItemSend+=new Outlook.ApplicationEvents_11_ItemSendEventHandler(Application_ItemSend);
}
void Application_ItemSend(object Item, ref bool Cancel)
{
Outlook.Recipient recipient = null;
Outlook.Recipients recipients = null;
Outlook.MailItem mail = Item as Outlook.MailItem;
string selectedAccount= ?????
}
如何获得后者的属性?
【问题讨论】:
标签: visual-studio-2010 vsto outlook-addin outlook-2010