Click or drag to resize
MimeKit

MessagePartialSplit Method

Split a message into multiple messages.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public static IEnumerable<MimeMessage> Split(
	MimeMessage message,
	int maxSize
)

Parameters

message  MimeMessage
The message.
maxSize  Int32
The maximum size for each message body.

Return Value

IEnumerableMimeMessage
An enumeration of partial messages.
Exceptions
ExceptionCondition
ArgumentNullExceptionmessage is null.
ArgumentOutOfRangeExceptionmaxSize is less than 1.
ObjectDisposedExceptionmessage has been disposed.
Remarks
Splits the specified message into multiple messages, each with a message/partial body no larger than the max size specified.
See Also