I'm currently having issues with an Outlook add-in created for 2010 with VSTO that i developed with identifying if an email address is located inside the organization or is located outside the organization.
While an email is being sent out i'm using the below MAPI property to read the email address of the recipient. Where addr is the AddressEntry object.
Microsoft.Office.Interop.Outlook.PropertyAccessor pa = addr.PropertyAccessor;
smtpAddress = pa.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x39FE001E").ToString();
This works fine for the exchange contacts and the local contacts. But if you create a local contact and choose the email address from the Global Address Book then this MAPI property is not present in that particular contact. I just need to know what will be the best way to find if a contact (email address) is inside the organization or outside the organization (Also this method reduces the performance, there are people in my organization who would send email to more than 500 users at a time and it is taking more than 10 minutes to process the internal/external email scan through the above MAPI property). I know that outlook already displays the same information as a MailTip on the "New Email" window. So my question is
Is there any way to tap into the MailTip and read the information from it?
If no what would be the best way to find if the contact email address is inside/outside the organization (Considering the performance)