我是VB的新手,我创建了一个发送给收件人的电子邮件,该收件人以示例中的vb编码; How to: Programmatically Create an E-Mail Item
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
CreateMailItem();
}
private void CreateMailItem()
{
Outlook.MailItem mailItem = (Outlook.MailItem)
this.Application.CreateItem(Outlook.OlItemType.olMailItem);
mailItem.Subject = "This is the subject";
mailItem.To = "someone@example.com";
mailItem.Body = "This is the message.";
mailItem.Importance = Outlook.OlImportance.olImportanceLow;
mailItem.Display(false);
}
此外,我在今天简要介绍了Outlook MAPI参考,因为它在我的办公室使用,但我对如何继续进行了操作感到困惑。
我希望在电子邮件中包含投票按钮,例如批准/拒绝,以便我可以使用MAPI根据主题“批准:blabla”过滤收件人收到的电子邮件。
P.S Outlook在“Approve:blasddd”或“Reject:hjjkkkk”中给出了响应的主题标题。如有任何建议,将不胜感激。
答案 0 :(得分:1)
您需要使用MailItem.VotingOptions
属性。见https://msdn.microsoft.com/en-us/library/office/ff424466.aspx