Click or drag to resize
MimeKit

SmtpClientPrepare Method

Prepare the message for transport with the specified constraints.

Namespace:  MailKit.Net.Smtp
Assembly:  MailKit (in MailKit.dll) Version: 2.3.0
Syntax
C#
protected virtual void Prepare(
	FormatOptions options,
	MimeMessage message,
	EncodingConstraint constraint,
	int maxLineLength
)

Parameters

options
Type: MimeKitFormatOptions
The format options.
message
Type: MimeKitMimeMessage
The message.
constraint
Type: MimeKitEncodingConstraint
The encoding constraint.
maxLineLength
Type: SystemInt32
The max line length supported by the server.
Remarks

Prepares the message for transport with the specified constraints.

Typically, this involves calling Prepare(EncodingConstraint, Int32) on the message with the provided constraints.

See Also