|Subject:||Re: Trying to send an attachment results in a EAbstractError ?|
|Posted by:||Remy Lebeau (TeamB) (email@example.com)|
|Date:||Wed, 9 Feb 2005|
"Pelle F. S. Liljendal" <pel…@liljendxaxl.dk (Remove the X's)> wrote in
> I have a (so it seems) very simple problem as I can't get
> Indy 10 to sent an mail wich an attachment
TIdAttachment is an abstract base class in Indy 10. You should not be
instantiating it directly. You need to use one of its descendant classes
instead, such as TIdAttachmentFile, ie:.
procedure TForm1.Button1Click(Sender: TObject);
> Whenever I execute the line "idSMTP1.Send(IdMessage1);". Delphi
> simply breaks with the following error: "Project IndyTestProj.exe
> raised exception class EAbstractError with message 'Abstract.Error'" ???
As well it should. TIdAttachment has abstract methods which are not
implemented at the TIdAttachment level, but are overriden in descendants
Trying to send an attachment results in a EAbstractError ? posted by Pelle F. S. Liljendal on Wed, 9 Feb 2005