Initializes a new instance of the SmtpException class with the specified error message, status, and a list of rejected recipients.

Namespace:  Rebex.Net
Assembly:  Rebex.Smtp (in Rebex.Smtp.dll)

Syntax

Visual Basic
Public Sub New ( _
	message As String, _
	status As SmtpExceptionStatus, _
	rejected As SmtpRejectedRecipient() _
)
C#
public SmtpException(
	string message,
	SmtpExceptionStatus status,
	SmtpRejectedRecipient[] rejected
)

Parameters

message
Type: System..::..String
The message that describes the error.
status
Type: Rebex.Net..::..SmtpExceptionStatus
One of the SmtpExceptionStatus values.
rejected
Type: array<Rebex.Net..::..SmtpRejectedRecipient>[]()[][]
A list of rejected recipients.

Remarks

The status must not be ProtocolError. Use SmtpException (SmtpResponse response) constructor for creating protocol error exceptions.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also