Re: SMTP and Richtext

Giganews Newsgroups
Subject: Re: SMTP and Richtext
Posted by:  Remy Lebeau (Indy Team) (
Date: Tue, 17 Oct 2006

"Joachim Klöfers" <…> wrote in message

> I want to send a richtext formatted file via smtp.
> But (I am absolut new) cannot find out how to do that.
> That means, what content type, and so on.

Use 'text/rtf' for the content type.  If you don't want to put any
attachments into the message, then simply assign the RTF text to the
TIdMessage.Body property and then set the TIdMessage.ContentType property.
Otherwise, put the RTF into a TIdText object instead that is added to the
TIdMessage.MessageParts collection.




In response to

SMTP and Richtext posted by Joachim Klöfers on Tue, 17 Oct 2006