![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
|||
|
|||
![]()
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. |
#3
|
|||
|
|||
![]() 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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook option -r u really sure u want 2 send email 2 these addres | Eric Scoles | Outlook - Using Contacts | 1 | July 28th 07 04:58 AM |
Contact links to business fax not email addres - outlook 2003 | JMHV | Outlook - Using Contacts | 1 | March 21st 07 10:39 PM |
Sending with an invalid email addres | redbeartwo | Outlook Express | 8 | March 1st 07 04:45 PM |
Help with backup and exporting/importing email messages and addres | LewB | Outlook Express | 18 | October 9th 06 08:04 AM |
How can I create a MailItem that displays like a received MailItem ? | Clive | Outlook - Using Forms | 0 | February 27th 06 05:14 PM |