Re: TIdMessage.Body is NULL

Giganews Newsgroups
Subject: Re: TIdMessage.Body is NULL
Posted by:  Ciaran Costelloe (ccostell…@flogas.ie)
Date: Fri, 17 Jun 2005

eduardo wrote:

>
> Hi
>
> I have another problem, I work with C++ Builder 6 & Indy 9.00.15, I
> have code to retrieve a simple text mail with IdPOP3 component.
>
> I haven4t problem to retrive mail and I obtain de Name (From) and
> Subjet from mail perfetly with TIdMessage but and now to retrieve the
> body, now I write the code I have:

As Gambit pointed out, the body can be empty and there may be no
message parts, you have to code for this - about once every second day,
I get a badly-formatted spam email like this (it just contains header
lines).

Ciaran

Replies

None

In response to

TIdMessage.Body is NULL posted by eduardo on Thu, 16 Jun 2005