how to use Email1EntryID to get AddressEntry

  • Thread starter Hendrik Schreiber
  • Start date
H

Hendrik Schreiber

Hi,

I am trying to find out the SMTP address of a ContactItem with OOM/CDO. I
thought I could just look up the Email1EntryID from the ContactItem and then
use this ID to call session.GetAddressEntry through CDO and then get the
field CdoPR_EMAIL.
However, it seems that the Email1EntryID I get back from OOM is an illegal
argument for GetAddressEntry (E_INVALIDARG(80070057))

What am I doing wrong here?

Thanks,

-hendrik
 
H

Hendrik Schreiber

Well - I am not truly coding in VB, but I am using a Java to COM bridge and
code in Java. Anyway, I figured it out by simply not using the Email1EntryID
I get through the OOM to get an AddressEntry object, but by using the
CdoContact_EmailOriginalEntryID on the CDO Contact message object.

However - using the eval version of your OutlookSpy I could actually verify
that Email1EntryID for a perfectly valid email address was garbage. Is this
maybe part of the whole security patch issue?

Anyway - thanks for offering help. I really appreciate it.

-hendrik
 
D

Dmitry Streblechenko

How do you know that Email1EntryID is garbage? It is only supposed to make
sense to the provider. Copy Email1EntryID to the clipboard, click
IMAPISession in OutlookSpy, go to the OpenEntry tab, click "Enter Entry ID"
and paste the text. Does it open anything?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
H

Hendrik Schreiber

Hi,

sorry for not coming back to you earlier.

I tried out your suggestion with the same result.
My Email1EntryID was '`' (without the ') and lead to an invalid entryid
error. So something is wrong with that...

CDO works fine however.

-hendrik
 

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