Click or drag to resize
MimeKit

MimeMessage Constructor (IEnumerableInternetAddress, IEnumerableInternetAddress, String, MimeEntity)

Initialize a new instance of the MimeMessage class.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 2.14.0
Syntax
C#
public MimeMessage(
	IEnumerable<InternetAddress> from,
	IEnumerable<InternetAddress> to,
	string subject,
	MimeEntity body
)

Parameters

from
Type: System.Collections.GenericIEnumerableInternetAddress
The list of addresses in the From header.
to
Type: System.Collections.GenericIEnumerableInternetAddress
The list of addresses in the To header.
subject
Type: SystemString
The subject of the message.
body
Type: MimeKitMimeEntity
The body of the message.
Remarks
Creates a new MIME message, specifying details at creation time.
See Also