|Subject:||Re: Indy 10 attachments|
|Posted by:||Remy Lebeau (TeamB) (firstname.lastname@example.org)|
|Date:||Thu, 10 Jun 2004|
"Rhys Sage" <email@example.com> wrote in message
> How do I find the name/type of an attachment? How also do I
> access the attachment? I've hunted and the answers are probably
> staring me in the face. I just can't find them though.
As was the case with your earlier questions regarding TIdText, you simply
cast to TIdAttachment instead of TIdText when needed, ie:
if (IdMessage1.MessageParts.Items[PartCounter] is TIdAttachment) then
// use Attachment as needed...
Indy 10 attachments posted by Rhys Sage on Thu, 10 Jun 2004