Re: Attachment Problem

Giganews Newsgroups
Subject: Re: Attachment Problem
Posted by:  Remy Lebeau \(Indy Team\) (re…
Date: Mon, 18 Oct 2010

"Tom Hahn" <tha…> wrote in message

> I am upgrading a program from Delphi 7 / Indy 10.0.18 (I think)
> I was using code to send an attachment which no longer compiles:

That code is for Indy 9, not Indy 10.  In Indy 10, TIdAttachment was changed
into an abstract base class for new descendant classes.  This is stated in
the Indy 10 documentation:

In this situation, use TIdAttachmentFile now:

TIdAttachmentFile.Create(Msg.MessageParts, UserSession.Attachment);

> How can I find out the version of Indy being used?

Right-click on any Indy component in the Form Designer.

Remy Lebeau (TeamB)


In response to

Attachment Problem posted by Tom Hahn on Sun, 17 Oct 2010