Click or drag to resize
MimeKit

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

Send the specified message using the supplied sender and recipients.

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

Parameters

message  MimeMessage
The message.
sender  MailboxAddress
The mailbox address to use for sending the message.
recipients  IEnumerableMailboxAddress
The mailbox addresses that should receive the message.
cancellationToken  CancellationToken  (Optional)
The cancellation token.
progress  ITransferProgress  (Optional)
The progress reporting mechanism.

Return Value

String
The final free-form text response from the server.
Remarks
Sends the specified message using the supplied sender and recipients.
See Also