Re: BCB beginner mailclient

Giganews Newsgroups
Subject: Re: BCB beginner mailclient
Posted by:  Remy Lebeau (TeamB) (
Date: Sun, 15 Feb 2004

"Marly nieuws" <marl…> wrote in message

> I have no idea how to attach an attachment to my mails.

Simply add a TIdAttachment instance to the TIdMessage::MessageParts
collection.  for example:

    TIdAttachment *attachment = new TIdAttachment(IdMessage1->MessageParts,
"the full file path");
    attachment->FileName = "the file name"
    attachment->ContentType = "the content type of the file"



In response to

BCB beginner mailclient posted by Marly nieuws on Sun, 15 Feb 2004