I'm writing an Add-In for Outlook 2010 that should get the total number of people the recieving the email.
I can get the email property fairly easily with the following code:
<!-- language: lang-vb -->Dim mailItem As MailItem
mailItem = Globals.ThisAddIn.Application.ActiveInspector.CurrentItem
MailItem
exposes some properties like:
However, if the email is going out to a contact group (formerly distribution lists), mailItem.Recipients.Count
will only return a value of 1
, even though multiple people will get the email.
Is there a way to query the total number of recipients within a contact group?
On some level it has to be possible, because Outlook will even do some of it for you: