Re: TIdAttachment in Indy10

Giganews Newsgroups
Subject: Re: TIdAttachment in Indy10
Posted by:  Arch (archie.campbe…
Date: Wed, 12 Aug 2009

An earlier post suggests that I should try

var attach: TIdAttachmentFile;

attach := TIdAttachmentFile.Create(mailmsg.MessageParts, fname);

But compiler says TIdAttachmentFile is an undeclared identifier


"Arch" <archie.campbe…> wrote in message
>I have been using Indy10 mail messages in Delphi v10 quite happily but
>never tried sending an attachment before.
> I thought it would go something like...
> uses IdAttachment
> var attach: TIdAttachment;
> attach := TIdAttachment.Create(mailmsg.MessageParts);
> attach.FileName := fname;
> But this gives me an Astract Error.
> mailmsg sends OK without the attachment (which is just a plain text file)
> Any help gratly appreciated
> Arch


In response to

TIdAttachment in Indy10 posted by Arch on Wed, 12 Aug 2009