SmtpException Class
Namespace: Rebex.Net
Assembly: Rebex.Smtp.dll (version 7.0.9083)
The exception that is thrown when an error occurs while using Smtp component.
Syntax
public class SmtpException : NetworkSessionException, ISerializable
Implements
Inherited Members
Constructors
Name | Description |
---|---|
SmtpException() | Initializes a new instance of the SmtpException class. |
SmtpException(SmtpResponse) | Initializes a new instance of the SmtpException class with the specified SmtpResponse. |
SmtpException(String) | Initializes a new instance of the SmtpException class with the specified error message. |
SmtpException(String, SmtpExceptionStatus) | Initializes a new instance of the SmtpException class with the specified error message and status. |
SmtpException(String, SmtpExceptionStatus, SmtpRejectedRecipient[]) | Initializes a new instance of the SmtpException class with the specified error message, status, and a list of rejected recipients. |
SmtpException(String, Exception) | Initializes a new instance of the SmtpException class with the specified error message and a reference to the inner exception that is the cause of this exception. |
SmtpException(String, Exception, SmtpExceptionStatus) | Initializes a new instance of the SmtpException class with the specified error message, status, and a reference to the inner exception that is the cause of this exception. |
Properties
Name | Description |
---|---|
ProtocolCode | Gets the protocol error code, if available (usually when Status is set to ProtocolError). Inherited from NetworkSessionException. |
ProtocolMessage | Gets the protocol error message, if available (usually when Status is set to ProtocolError). Inherited from NetworkSessionException. |
Response | Gets the SmtpResponse of the exception. |
Status | Gets the status of the response. |
Methods
Name | Description |
---|---|
GetRejectedRecipients() | Gets the list of rejected recipients. |