Back to product page

EncodeText Method


Encodes message text.

Type

String

Syntax

  • Basic
object.EncodeText (Encoding, Text)
The EncodeText(object,Encoding,Text) syntax has these parts:
objectAn expression evaluating to an object of type SmtpMsg
EncodingSpecifies preferred encoding type (base64 is default).
TextRequired. A String value. Text that will be encoded.

Remarks

Unlike Text property that will set message body 'as is', this method will try to encode specific Text with any of supported AttachmentEncodingsEnum values. Resulting string can be used with Text property, but is not neccessary.

Platforms

Windows