Re: TIdMessage throws EAbstractError

Giganews Newsgroups
Subject: Re: TIdMessage throws EAbstractError
Posted by:  Ciaran Costelloe (ccostell…@flogas.ie)
Date: Fri, 17 Jun 2005

Gerhard Hofmann wrote:

> Hi all,
>
> I am trying to send an email using TIdMessage and it crashes with
> EAbstractError.
>
> --snip--
> if SendLogFile = 1 then
>    begin
>      IdSmtp.Host:= MailServer;
>      IdMessage.Subject:= subject + ' ' + DateToStr(Date);
>      IdMessage.From.Address:= FromAddress;
>      IdMessage.Recipients.EMailAddresses:= Recipients;
>      IdAttachment:= TIdAttachment.Create(IdMessage.MessageParts);

For Indy 10, use TIdAttachmentFile instead.

Ciaran

Replies

None

In response to

TIdMessage throws EAbstractError posted by Gerhard Hofmann on Fri, 17 Jun 2005