Re: How to attach a file to an e-mail ?

Giganews Newsgroups
Subject: Re: How to attach a file to an e-mail ?
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Fri, 21 Jan 2005

"Hernán Sánchez" <hernan.sanch…@iname.com> wrote in message
news:730645BEAABCE240hernan.sanch…@iname.com...

>    TIdAttachment.Create(IdMsgSend.MessageParts, sAttachments);

TIdAttachment is an abstract base class in Indy 10.  You need to use a
descendant class now.  Indy provides TIdAttachmentFile and
TIdAttachmentMemory classes.  TIdAttachmentFile mimics the behavior of Indy
9, getting/storing data to a file on the hard drive.  Whereas
TIdAttachmentMemory provided new support for getting/storing data from
memory instead of a file.

Gambit

Replies

None

In response to

How to attach a file to an e-mail ? posted by Hernán Sánchez on Fri, 21 Jan 2005