Re: body of multipart TIdMessage

Giganews Newsgroups
Subject: Re: body of multipart TIdMessage
Posted by:  Remy Lebeau (re…
Date: Fri, 18 Sep 2015

Boba wrote:

> how do I add text lines to the body of multipart
> message? Calling TIdMessage.Body.Add(mystr) puts
> mystr into the first part instead of the Body.

You don't use the TIdMessage.Body property in a multipart email.  You use
TIdText objects in the TIdMessage.MessageParts property instead.  To add
lines, find the TIdText object you are interested in (there may be several)
and then add to the TIdText.Body property.

Remy Lebeau (Indy Team)



In response to

body of multipart TIdMessage posted by Boba on Thu, 17 Sep 2015