Click or drag to resize
MimeKit

InternetAddressListToString Method (FormatOptions, Boolean)

Returns a string representation of the email addresses in the InternetAddressList, optionally encoding them for transport.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 2.1.0.0
Syntax
C#
public string ToString(
	FormatOptions options,
	bool encode
)

Parameters

options
Type: MimeKitFormatOptions
The formatting options.
encode
Type: SystemBoolean
If set to true, each InternetAddress in the list will be encoded.

Return Value

Type: String
A string representing the InternetAddressList.
Remarks

If encode is true, each address in the list will be encoded according to the rules defined in rfc2047.

If there are multiple addresses in the list, they will be separated by a comma.

See Also