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: 2.14.0
Syntax
C#
public static explicit operator MimeMessage (
	MailMessage message
)

Parameters

message
Type: System.Net.MailMailMessage
The message.

Return Value

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