Smtp ClientPrepare Method
Prepare the message for transport with the specified constraints.
Definition
Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
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.