Click or drag to resize
MimeKit

MimeMessageToString Method

Returns a String that represents the MimeMessage for debugging purposes.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 2.14.0
Syntax
C#
public override string ToString()

Return Value

Type: String
A String that represents the MimeMessage for debugging purposes.
Remarks

Returns a String that represents the MimeMessage for debugging purposes.

Caution note Caution

In general, the string returned from this method SHOULD NOT be used for serializing the message to disk. It is recommended that you use WriteTo(Stream, CancellationToken) instead.

If this method is used for serializing the message to disk, the iso-8859-1 text encoding should be used for conversion.

See Also