Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 May : Indy 10 how to add an attachment???

www.cryer.info
Managed Newsgroup Archive

Indy 10 how to add an attachment???

Subject:Indy 10 how to add an attachment???
Posted by:"Ivan Sammut" (sammu..@hotmail.com)
Date:Tue, 17 May 2005 10:38:14

Hi,

I just changed to indy 10 and I am getting an error on the following code
which used to add an attachment to an e-mail message.

TIdAttachment.Create(lMessage.MessageParts, 'htmlbodyIMG0000.JPG');
Too many parameters is the error.


What is the new syntax to attach a file to an e-mail?

Ivan

Replies:

www.cryer.info
Managed Newsgroup Archive