Inspector.CurrentItem will return the current MailItem object (unless your
code works with other items too). From there you can loop through all the
recipients in the MailItem.Recipients collection. The recipient kind
(olTo/olCC/olBCC) is returned by the Recipient.Type property.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"jpuopolo" wrote in message
ups.com...
All:
I have developed an Outlook 2003 Add-In (VSTO/.NET/C#) that recognizes
when a new mail Inspector is created - it attaches a menu and things
work fine.
I would like to be able, when the user click on my menu, to read the
names in the To and CC fields of the new mail (prior to any Send event
being triggered).
How can my add-in access to the To and CC edit fields of the New Mail
window/inspector/explorer?
Many thanks,
John