trouble with reading mail attachments

Giganews Newsgroups
Subject: trouble with reading mail attachments
Posted by:  Daniel Goldstein (dgoldste…@despegar.com)
Date: Tue, 23 Sep 2003

Hi,

We are having trouble in reading mails that include attachments and were
sent by a MS Exchange server.

When we retrieve the message in debug time, the length of receiveHeaders is
0.  So, just like commented in the source code, it will try to do the
retrieve with the method ReceiveBody of the class TIdMessageClient.

After modifying the the code we were able to read the body of the messages.
However, the attachments are read and acknowledged, but after the SaveToFile
the attachment file seems corrupted -it cannot be opened with the
corresponding application.  We are using version 9.04 of the Indy libraries.

I will appreciate any help very much.

Regards,

Daniel

Replies