email - How to include Voting Button in Outlook Mail in VB.NET -


i'm new vb , have created email sent recipient coded in vb example; how to: programmatically create 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 subject";         mailitem.to = "someone@example.com";         mailitem.body = "this message.";         mailitem.importance = outlook.olimportance.olimportancelow;         mailitem.display(false);     } 

furthermore, briefly looked @ outlook mapi refrence today since it's used in office i'm confused on how proceed.

what want include in email voting button e.g approve/reject can filter received email recipient based on subject "approve: blabla" using mapi .

p.s outlook gives subject title of response in either "approve:blasddd" or "reject:hjjkkkk" . please suggestion appreciated.

you need use mailitem.votingoptions property. see https://msdn.microsoft.com/en-us/library/office/ff424466.aspx


Comments