Click or drag to resize
MimeKit

IMailTransportSend Method (FormatOptions, MimeMessage, MailboxAddress, IEnumerableMailboxAddress, CancellationToken, ITransferProgress)

Send the specified message using the supplied sender and recipients.

Namespace:  MailKit
Assembly:  MailKit (in MailKit.dll) Version: 2.3.0
Syntax
C#
void Send(
	FormatOptions options,
	MimeMessage message,
	MailboxAddress sender,
	IEnumerable<MailboxAddress> recipients,
	CancellationToken cancellationToken = null,
	ITransferProgress progress = null
)

Parameters

options
Type: MimeKitFormatOptions
The formatting options.
message
Type: MimeKitMimeMessage
The message.
sender
Type: MimeKitMailboxAddress
The mailbox address to use for sending the message.
recipients
Type: System.Collections.GenericIEnumerableMailboxAddress
The mailbox addresses that should receive the message.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.
progress (Optional)
Type: MailKitITransferProgress
The progress reporting mechanism.
Remarks
Sends the specified message using the supplied sender and recipients.
See Also