Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






SetContentFromText method

Sets the content of a MIME entity from text.

Note This method is new with Release 6.

Defined in

NotesMIMEEntity

Syntax

Call notesMIMEEntity.SetContentFromText( stream, contentType, encoding )

Parameters

stream

NotesStream. The text input. This input replaces any existing content. If the stream is empty, any current content is removed.

contentType

String. Content type/subtype of input. This parameter generates a Content-Type header.

encoding

Constant of type Integer. The MIME content transfer encoding. This parameter generates a Content-Transfer-Encoding header. See also EncodeContent.

Usage

If the NotesStream input is the result of NotesStream.WriteText, translation of the internal Unicode defaults to US-ASCII. To translate characters other than US-ASCII, append a charset parameter such as "charset=UTF-8" or "charset=Unicode-1-1" to the type/subtype.

If Content-Type specifies "text" and the "charset" parameter specifies a known Internet encoding, and encoding is ENC_IDENTITY_8BIT or ENC_IDENTITY_BINARY, content storage is with the specified character set. Otherwise, content storage is attempted with US-ASCII.

This method sets the stream Position at end of stream.

Language cross-reference

setContentFromText in Java MIMEEntity class

See examples

Examples: SetContentFromText method
Related topics
Working with a MIME entity in LotusScript classes




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009