InternetMailMessage.SetField

Syntax:

SetField(<FieldName>, <FieldValue>, <EncodingMethod>)

Parameters:

<FieldName> (required)

Type: String.
Name of the field placed to the main title of a message. Name can only consist of printable ASCII characters (i.e. characters from 33 to 126, inclusive), with the exception of "colon" (":"). This range includes all English alphabet (both lower and upper case) and several special characters.

<FieldValue> (required)

Type: Number; String; InternetMailAddress; InternetMailAddresses.
Value of the field being added.

<EncodingMethod> (optional)

Type: InternetMailMessageNonASCIISymbolsEncodingMode.
Method of encoding the field in the title. If this parameter is not set, the value of NonASCIISymbolsEncodingMode property will be used.

Description:

Adds a user field to the main header of a mail message. Text data will be converted to the encoding set by Encoding property.

Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Note:

If specified field exists, it is overwritten with a new value.

    

1C:Enterprise Developer's Community