Re: SMTP and Richtext

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

"Joachim Klöfers" <…@datarequest.de> wrote in message
news:1DDB31D0F20BE340…@datarequest.de...

> 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.

Gambit

Replies

None

In response to

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