A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Full email addres for mailItem.To



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 22nd 07, 12:24 PM posted to microsoft.public.outlook.program_addins
pjerling
external usenet poster
 
Posts: 12
Default 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.

  #2  
Old November 22nd 07, 06:13 PM posted to microsoft.public.outlook.program_addins
Johannes
external usenet poster
 
Posts: 4
Default 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.
  #3  
Old November 23rd 07, 08:22 AM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default 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.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 09:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright 2004-2025 Outlook Banter.
The comments are property of their posters.