Full email addres for mailItem.To

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top