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: 4.7.1
Syntax
C#
public override string ToString()

Return Value

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