Full email addres for mailItem.To

P

pjerling

Hi there,

when accessing the mailItem.To method, it returns the name of the person
instead of their email address.

Any ideas as to how I can retrieve their email address instead?

Thanks.
 
J

Johannes

mailItem.To just gives you a string, if the addresses have been
resolved to a contact, Outlook shows the name there, not the address.
You need to work with the mailItem.Recipients collection to get the
email address.
 
Top