PR_SENDER_ADDRTYPE >> NOT_FOUND

K

klwemu

Hello!

When I access with VBA (MAPI) to Outlook, and use ...

Debug.Print message.Fields(&H40001E) ' PR_RECEIVED_BY_NAME
or
Debug.Print message.Fields(&H3F0102) ' PR_RECEIVED_BY_ENTRYID
or
Debug.Print message.Fields(&H75001E) ' PR_SENDER_ADDRTYPE

all works fine and I can receive the values! But is Exchange used
instead of Outlook, I will get ERR_E_NOT_FOUND
But OutlookSpy shows the fields in Exchange too, and i.e. PR_SUBJECT
works! Why can i not access to PR_SENDER_ADDRTYPE???

Any ideas?
Regards
 
K

Ken Slovak - [MVP - Outlook]

PR_SENDER_ADDRTYPE = &HC1E001E (0x0C1E001E).

Where did you get that other property tag value? That should be for
PR_RECEIVED_BY_ADDRTYPE.
 
K

klwemu

PR_SENDER_ADDRTYPE = &HC1E001E (0x0C1E001E).

Where did you get that other property tag value? That should be for
PR_RECEIVED_BY_ADDRTYPE.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm


When I access with VBA (MAPI) to Outlook, and use ...
Debug.Print message.Fields(&H40001E) ' PR_RECEIVED_BY_NAME
or
Debug.Print message.Fields(&H3F0102) ' PR_RECEIVED_BY_ENTRYID
or
Debug.Print message.Fields(&H75001E) ' PR_SENDER_ADDRTYPE
all works fine and I can receive the values! But is Exchange used
instead of Outlook, I will get ERR_E_NOT_FOUND
But OutlookSpy shows the fields in Exchange too, and i.e. PR_SUBJECT
works! Why can i not access to PR_SENDER_ADDRTYPE???
Any ideas?
Regards

Sorry - i copied "PR_SENDER_ADDRTYPE" false in the posting. :-(

I cant acces to ...
PR_RECEIVED_BY_EMAIL_ADDRESS
PR_RECEIVED_BY_NAME
PR_RECEIVED_BY_ENTRYID
 
K

Ken Slovak - [MVP - Outlook]

Are these actually emails that have been received and not some that were
sent out or unsent items?

I can get those properties in a received email whether I'm using an Exchange
profile with a mailbox or a PST file profile.

You mentioned using MAPI, did you mean using CDO 1.21? Can you show the VBA
code you're using and reveal the Outlook version you're using?
 
K

klwemu

Are these actually emails that have been received and not some that were
sent out or unsent items?

I can get those properties in a received email whether I'm using an Exchange
profile with a mailbox or a PST file profile.

You mentioned using MAPI, did you mean using CDO 1.21? Can you show the VBA
code you're using and reveal the Outlook version you're using?

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm


<snip>


Sorry - i copied "PR_SENDER_ADDRTYPE" false in the posting. :-(
I cant acces to ...
PR_RECEIVED_BY_EMAIL_ADDRESS
PR_RECEIVED_BY_NAME
PR_RECEIVED_BY_ENTRYID

I think is is not a coding problem, because on one of my system
(WinXP, OL 2K-SP1) it works fine. But on a Win2K OL 2K with Exchange
it does not work.
maybe is the reason in the securety update?

I access the mail with mapi only! No Cdo!

Can you post some simple code snip?
 
Top