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: 4.7.1
Syntax
C#
protected virtual void Prepare(
	FormatOptions options,
	MimeMessage message,
	EncodingConstraint constraint,
	int maxLineLength
)

Parameters

options  FormatOptions
The format options.
message  MimeMessage
The message.
constraint  EncodingConstraint
The encoding constraint.
maxLineLength  Int32
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