SendRequest(MimeMessage, MailboxAddress, IEnumerableMailboxAddress) Constructor

Initializes a new instance of the SendRequest class.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public SendRequest(
	MimeMessage message,
	MailboxAddress sender,
	IEnumerable<MailboxAddress> recipients
)

Parameters

message  MimeMessage
The message.
sender  MailboxAddress
The mailbox address to use as the envelope sender.
recipients  IEnumerableMailboxAddress
The mailbox addresses to use as the envelope recipients.

Remarks

Creates a new SendRequest using the supplied envelope sender and recipients.

Exceptions

ArgumentNullException

message is .

-or-

sender is .

-or-

recipients is .

See Also