Click or drag to resize
MimeKit

MimeMessageCreateFromMailMessage Method

Create a new MimeMessage from a MailMessage.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static MimeMessage CreateFromMailMessage(
	MailMessage message
)

Parameters

message  MailMessage
The message.

Return Value

MimeMessage
The equivalent MimeMessage.
Exceptions
ExceptionCondition
ArgumentNullExceptionmessage is null.
Remarks
Creates a new MimeMessage from a MailMessage.
See Also