Click or drag to resize
MimeKit

Rfc2047EncodeText(Encoding, String) Method

Encode unstructured text.

Namespace: MimeKit.Utils
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static byte[] EncodeText(
	Encoding charset,
	string text
)

Parameters

charset  Encoding
The charset encoding.
text  String
The text to encode.

Return Value

Byte
The encoded text.
Exceptions
ExceptionCondition
ArgumentNullException

charset is null.

-or-

text is null.

Remarks
Encodes the unstructured text according to the rules of rfc2047 using the specified charset encoding.
See Also