Re: Undeclared identifier 'TidAttachment'

Giganews Newsgroups
Subject: Re: Undeclared identifier 'TidAttachment'
Posted by:  Chad Z. Hower aka Kudzu (cp…
Date: Tue, 19 Jul 2005

"Odin Roll-Hansen" <od…> wrote in news:758BAC7D02D3E240od…
> I am trying to make a program that can send an email with attachments.
> I am using Delphi 5 and Indy 10
> When I write this line of code;
> TidAttachment.Create(idMessage1.MessageParts, AttachmentFileName);
> I get the errormessage 'Undeclared identifier 'TidAttachment'

Use TIdAttachmentFile instead, and add IdAttachmentFile to your uses.


In response to

Undeclared identifier 'TidAttachment' posted by Odin Roll-Hansen on Tue, 19 Jul 2005