Re: Undeclared identifier 'TidAttachment'

Giganews Newsgroups
Subject: Re: Undeclared identifier 'TidAttachment'
Posted by:  Ciaran Costelloe (ccostell…
Date: Tue, 19 Jul 2005

Odin Roll-Hansen wrote:

> Hi
> 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'
> when compiling
> What am I doing wrong?
> Yours Odin

Old code!  Use TIdAttachmentFile instead of TIdAttachment, and make
sure IdAttachmentFile is in your uses section.




In response to

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