Click or drag to resize
MimeKit

MimeMessage   Conversion (MailMessage to MimeMessage)

Explicit cast to convert a MailMessage to a MimeMessage.

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

Parameters

message  MailMessage
The message.

Return Value

MimeMessage
The equivalent MimeMessage.
Remarks
Allows creation of messages using Microsoft's System.Net.Mail APIs.
See Also