How to load attachment from TStream,

Giganews Newsgroups
Subject: How to load attachment from TStream,
Posted by:  Grant Brown (gra…@sitedoc.com.au)
Date: Wed, 17 Aug 2005

Using D5

I currently use the following to load an attachment file to an Indy message prior to it being set
using the Indy SMTP component

TIdAttachment.Create(MailMessage.MessageParts, PDF_OverRideFileName);

What I need to be able to do is load the attachment from a stream, all of the current examples only
show loading the entire message from a stream and not just an attachment file.

Can any one show me how to do this.

TIA

Regards
Grant Brown

Replies