Click or drag to resize
MimeKit

MimeMessageCreateFromMailMessage Method

Creates a new MimeMessage from a MailMessage.

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

Parameters

message
Type: System.Net.MailMailMessage
The message.

Return Value

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