Trying to get the body

B

Benoit Gantaume

Hello
When I try to get the body of big emails, MAPI says that it has not enough
memory!

But I have seen that Outlook Spy could bypass this problem and manages to
display the body.

Does anyone know what I must do to prevent MAPI from sending and error and
to get the body?

here is a piece of code:

LPSPropValue tmp = NULL;
hr = HrGetOneProp( mail, PR_BODY, &tmp);

++
 
D

Dmitry Streblechenko

Call IMessage::OpenProperty(PR_BODY, &IID_IStream, ...) instead - as a
general rule, large (32kb or so) string or binary properties must be
retrieved using OpenProperty().

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Joined
Apr 4, 2006
Messages
1
Reaction score
0
Same question, only VB/VBA

Hello,

Is there any way to access messages with large body parts using VB or VBA ?

(Is seems that "OpenProperty" is a C/C++ function).

Thanks,

Erez
 

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