I've created an outlook 2010 addin using vb.net. What I'm doing is, one person generates an email through my addin (so that it can be tracked through our database), adding custom text to it and attachements, then sends. The email is being marked for followup and shows up in the recipients box, showing the outlook alert that an item is flagged for followup. The problem is that the sent item sitting in the senders folder is also showing the outlook that the item was flagged.
So what I need is code (preferrably vb.net) that will flag an item for followup bu ONLY for the recipient and not the sender. I know that it can be done manually through the outlook interface, but I'm trying not to make the user do that.
Once the user clicks the button on the ribbon, the following is generated:
Dim NewMail As Outlook.MailItem = Globals.ThisAddIn.Application.CreateItem(Outlook.OlItemType.olMailItem)
NewMail.FlagRequest = True
I've been looking for code and so far haven't found anything that only applies to the recipient of the email.