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

Recipients & Contacts



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old February 9th 06, 05:21 PM posted to microsoft.public.outlook.program_addins
David Cebrian
external usenet poster
 
Posts: 15
Default Recipients & Contacts

Thank you very much.

this answer save me of a lot of problems.

Thank you again.

"Ken Slovak - [MVP - Outlook]" escribió en el mensaje
...
Sort of but not really is the best answer. If the recipient isn't a

one-off
recipient and does live in a contacts folder the usual thing is to get the
name and search any contacts folder (using Find or Restrict) to locate a
contact with that name. You can also use something like email address but

of
course then you have to filter on all 3 and reading email addresses is
subject to the object model guard if the code isn't trusted or if you

don't
use a method to avoid the security prompts, such as Redemption
(www.dimastr.com/redemption).

However, there's another (undocumented) way to do this. Get the EntryID of
the Recipient.AddressEntry object and hack out part of that string to get
the EntryID of the contact item.

The code would look something like this:

strID = oAddressEntry.ID
strID = Right(strID, Len(strID) - 72)
strID = Left(strID, Len(strID) - 6)

I hacked this out a while ago, so test it. The best way is with a MAPI

tool
such as OutlookSpy (www.dimastr.com) or MFCMAPI (from MS). You can use

that
to play with EntryID's and the pattern of the contact ID within the
AddressEntry ID.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"David Cebrian" wrote in message
...
Hello everybody !!!

Is there any way to obtain a contact item from the recipient of a mail
item???

It is very important for me.

Thanks for all.





 




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 2003 Contacts & Address Book Javier Outlook - Using Contacts 5 February 22nd 06 10:44 PM
need email messages to show all incoming & outgoing recipients? kimbol1 Outlook - Using Contacts 1 February 10th 06 11:28 AM
Copying Outlook Contacts & using in a small network Norm75 Outlook - Using Contacts 2 February 7th 06 06:37 PM
Lost my contacts & now company names don't display tester2500 Outlook - Using Contacts 3 February 2nd 06 10:04 PM
Outlook 2003 contacts & the display as field... Ivan T. Williams Outlook - Using Contacts 4 January 25th 06 04:07 PM


All times are GMT +1. The time now is 08:48 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-2025 Outlook Banter.
The comments are property of their posters.