Thanks! We'll email you
when relevant content is
added and updated.
I have an Outlook 2010 add-on and I'm trying to find an item in a folder that was sent by a given address. Here's my code so far:
MailItem FindEmailFromSender(MAPIFolder folder, string emailAddress)
string filter = "[sender] = '" + emailAddress + "'"; // This filter is wrong.
return folder.Items.Find(filter) as MailItem;
I'm having trouble finding the correct syntax. Can someone help me?