![]() |
Full email addres for mailItem.To
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. |
Full email addres for mailItem.To
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. |
Full email addres for mailItem.To
If the address is resolved it shows the display name, which you can determine yourself. So, that might or might not be the name. -- Best regards Michael Bauer - MVP Outlook Synchronize Color Categories & Ensure that Every Item Gets Categorized: http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6 Am Thu, 22 Nov 2007 09:13:01 -0800 (PST) schrieb 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. |
All times are GMT +1. The time now is 12:28 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com