G
G.V.Reddy
Hi,
I'm new to VBA and Outlook. My requirement is as follows:
I would like to monitor the each email ID before sending out any email, so
the emails should not be sent to other than our domain say "@xyz.com". I've
written a script in which I could access the To, CC, and BCC fields with the
Item object. I could split the email IDs using ";" as delimiter and checked
each email ID whether it is ending with "@xyz.com" or not. But as some email
IDs are entered from Contacts, the Item object displays the "Email Name"
rather email ID for that contact. Can anybody please help me how to find out
the email ID associated with the Contact displayed in the To, CC or BCC
fields?
Thanks in advance.
Venkat
I'm new to VBA and Outlook. My requirement is as follows:
I would like to monitor the each email ID before sending out any email, so
the emails should not be sent to other than our domain say "@xyz.com". I've
written a script in which I could access the To, CC, and BCC fields with the
Item object. I could split the email IDs using ";" as delimiter and checked
each email ID whether it is ending with "@xyz.com" or not. But as some email
IDs are entered from Contacts, the Item object displays the "Email Name"
rather email ID for that contact. Can anybody please help me how to find out
the email ID associated with the Contact displayed in the To, CC or BCC
fields?
Thanks in advance.
Venkat