Trying to get the body

  • Thread starter Thread starter Benoit Gantaume
  • Start date Start date
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);

++
 
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
 
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
 
Back
Top