SmtpSendResult Constructor

Initializes a new instance of the SmtpSendResult class.

Definition

Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public SmtpSendResult(
	SmtpStatusCode statusCode,
	string responseText,
	IReadOnlyList<MailboxAddress> acceptedRecipients,
	IReadOnlyList<MailboxAddress> rejectedRecipients
)

Parameters

statusCode  SmtpStatusCode
The final status code from the server.
responseText  String
The final free-form text response from the server.
acceptedRecipients  IReadOnlyListMailboxAddress
The recipients that were accepted by the server.
rejectedRecipients  IReadOnlyListMailboxAddress
The recipients that were rejected by the server.

Remarks

Creates a new SmtpSendResult.

Exceptions

ArgumentNullException

responseText is .

-or-

acceptedRecipients is .

-or-

rejectedRecipients is .

See Also