Full email addres for mailItem.To

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.
 
Back
Top