SmtpResponse members
The SmtpResponse structure provides properties and methods for responding to Simple Mail Transfer Protocol (SMTP) requests.
The SmtpResponse type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
SmtpResponse(String, String, []) | The SmtpResponse constructor initializes a new instance of the SmtpResponse structure. |
![]() |
SmtpResponse(String, String, String, Boolean, []) | Initializes a new instance of the SmtpResponse structure with a status code and enhanced status code for the response and a delivery status notification (DSN) explanation that contains additional Unicode information associated with a DSN. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
DsnExplanation | Gets additional information associated with a non-SMTP delivery status notification (DSN) that may contain Unicode characters. |
![]() |
EnhancedStatusCode | The EnhancedStatusCode property gets the enhanced status code for the response. |
![]() |
IsEmpty | |
![]() |
SmtpResponseType | The SmtpResponseType property gets a value that indicates the classification of the Simple Mail Transfer Protocol (SMTP) response. |
![]() |
StatusCode | The StatusCode property gets the status code for the response. |
![]() |
StatusText | The StatusText property gets a string collection that contains the section of each line of the response that comes after the status code and enhanced status code. |
Top
Methods
Name | Description | |
---|---|---|
![]() ![]() |
ConnectionDroppedDueTo | Specifies a reason why the connection was dropped. |
![]() |
Equals(Object) | The Equals method compares the current instance of the SmtpResponse structure to the object specified by the comparand parameter. (Overrides ValueType.Equals(Object).) |
![]() |
Equals(SmtpResponse) | The Equals method compares the current instance of the SmtpResponse structure to the SmtpResponse structure specified by the comparand parameter. |
![]() |
Equals(SmtpResponse, SmtpResponseCompareOptions) | |
![]() |
GetHashCode | The GetHashCode method gets the hash code for the message. (Overrides ValueType.GetHashCode().) |
![]() ![]() |
QueuedMailForDelivery(String) | The QueuedMailForDelivery field returns an instance of the SmtpResponse structure that represents a 250 2.6.0 response that indicates that the mail is queued for delivery. |
![]() ![]() |
QueuedMailForDelivery(String, String, String, String) | |
![]() ![]() |
QueuedMailForRedundancy(String) | Returns an SMTP response for a message with the associated message ID that is queued on redundant servers. |
![]() ![]() |
QueuedMailForRedundancy(String, String, String) | |
![]() |
ToString | The ToString method converts the current instance of the SmtpResponse structure to a Unicode string. (Overrides ValueType.ToString().) |
![]() ![]() |
TryParse | The TryParse method gets a value that indicates whether the string specified by the text parameter contains a valid Simple Mail Transfer Protocol (SMTP) response. |
Top
Operators
Name | Description | |
---|---|---|
![]() ![]() |
Equality | |
![]() ![]() |
Inequality |
Top
Fields
Name | Description | |
---|---|---|
![]() ![]() |
AnonymousSendAsDenied | The AnonymousSendAsDenied field gets an instance of the SmtpResponse structure that represents a 550 5.7.1 Anonymous client does not have permission to send as this sender response. |
![]() ![]() |
BadCommandSequence | The BadCommandSequence field gets an instance of the SmtpResponse structure that represents a 503 5.5.1 Bad sequence of commands response. |
![]() ![]() |
ConnectionDroppedByAgentError | The ConnectionDroppedByAgentError field gets an instance of the SmtpResponse structure that represents a 421 4.3.2 System not accepting network messages response. |
![]() ![]() |
ConnectionTimedOut | The ConnectionTimedOut field gets an instance of the SmtpResponse structure that represents a 421 4.4.1 Connection timed out response. |
![]() ![]() |
CTSParseError | |
![]() ![]() |
DataTransactionFailed | The DataTransactionFailed field gets an instance of the SmtpResponse structure that represents a 451 4.3.2 System not accepting network messages response. |
![]() ![]() |
Empty | The Empty field gets an instance of the SmtpResponse structure that represents an empty, invalid response. |
![]() ![]() |
EnvelopeFilterNotReady | |
![]() ![]() |
IncorrectTlsAuthLevel | Contains a value indicating that the TlsAuthLevel enumeration value is set to something other than DomainValidation. |
![]() ![]() |
InsufficientResource | The InsufficientResource field gets an instance of the SmtpResponse structure that represents a 452 4.3.1 Insufficient system resources response. |
![]() ![]() |
InvalidAddress | The InvalidAddress field gets an instance of the SmtpResponse structure that represents a 501 5.1.3 Invalid address (recipient) response. |
![]() ![]() |
InvalidArguments | The InvalidArguments field gets an instance of the SmtpResponse structure that represents a 501 5.5.4 Invalid arguments response. |
![]() ![]() |
InvalidContent | The InvalidContent field gets an instance of the SmtpResponse structure that represents a 554 5.6.0 Invalid Content response. |
![]() ![]() |
InvalidContentBareLinefeeds | Contains a value indicating that the SMTP request is invalid because it contains bare linefeeds. |
![]() ![]() |
InvalidRecipientAddress | The InvalidRecipientAddress field gets an instance of the SmtpResponse structure that represents a 554 5.4.4 Unable to route due to invalid recipient address response. |
![]() ![]() |
InvalidResponse | The InvalidResponse field gets an instance of the SmtpResponse structure that represents a 421 4.4.0 Remote server response was not RFC conformant response. |
![]() ![]() |
InvalidSenderAddress | The InvalidSenderAddress field gets an instance of the SmtpResponse structure that represents a 501 5.1.7 Invalid Address (Sender) response. |
![]() ![]() |
MailFromOk | The MailFromOk field gets an instance of the SmtpResponse structure that represents a 250 2.1.0 Sender OK response. |
![]() ![]() |
MessagePartialNotSupported | The MessagePartialNotSupported field gets and instance of the SmtpResponse structure that represents a 554 5.6.1 Messages of type message/partial are not supported response. |
![]() ![]() |
MessageTooLarge | The MessageTooLarge field gets an instance of the SmtpResponse structure that represents a 552 5.3.4 Message size exceeds fixed maximum message size response. |
![]() ![]() |
NoopOk | The NoopOk field gets an instance of the SmtpResponse structure that represents a 250 2.0.0 OK response. |
![]() ![]() |
OrgQueueQuotaExceeded | Contains a value indicating that the organization queue quota has been exceeded. |
![]() ![]() |
RcptNotFound | The RcptNotFound field gets an instance of the SmtpResponse structure that represents a 550 5.1.1 User unknown response. |
![]() ![]() |
RcptToOk | The RcptToOk field gets an instance of the SmtpResponse structure that represents a 250 2.1.5 Recipient OK response. |
![]() ![]() |
RecipientAddressExpanded | The RecipientAddressExpanded field gets an instance of the SmtpResponse structure that represents a 250 2.1.5 Recipient Address was Expanded response. |
![]() ![]() |
RecipientAddressExpandedByRedirectionAgent | Contains a value indicating that the recipient address was expanded by the redirection agent. |
![]() ![]() |
SendAsDenied | The SendAsDenied field gets an instance of the SmtpResponse structure that represents a 550 5.7.1 Client does not have permission to send as this sender (Sender) response. |
![]() ![]() |
SendOnBehalfOfDenied | The SendOnBehalfOfDenied field gets an instance of the SmtpResponse structure that represents a 550 5.7.1 Client does not have permission to send on behalf of the from address (Sender) response. |
![]() ![]() |
ServiceInactive | Contains a value that indicates whether the service is inactive. |
![]() ![]() |
ServiceUnavailable | The ServiceUnavailable field gets an instance of the SmtpResponse structure that represents a 421 Service not available, closing transmission channel response. |
![]() ![]() |
SpamFilterNotReady | Contains a value that indicates whether there was a temporary error initializing data and that the system is not accepting network messages. |
![]() ![]() |
SubmitDenied | The SubmitDenied field gets an instance of the SmtpResponse structure that represents a 550 5.7.1 Client does not have permission to submit to this server (Sender) response. |
![]() ![]() |
SuccessfulConnection | The SuccessfulConnection field gets an instance of the SmtpResponse structure that represents a 250 Success response. |
![]() ![]() |
SystemMisconfiguration | The SystemMisconfiguration field gets an instance of the SmtpResponse structure that represents a 550 5.3.5 System incorrectly configured response. |
![]() ![]() |
TimeoutOccurred | The TimeoutOccurred field gets an instance of the SmtpResponse structure that represents a 451 Timeout waiting for client input response. |
![]() ![]() |
TlsDomainRequired | Contains a value indicating that the IncorrectTlsAuthLevel field cannot be set to DomainValidation without a valid Transport Layer Security (TLS) domain. |
![]() ![]() |
TransientInvalidArguments | Contains a value indicating that there were invalid arguments and a possible version mismatch. |
![]() ![]() |
UnableToRoute | The UnableToRoute field gets an instance of the SmtpResponse structure that represents a 554 5.4.4 Unable to route response. |
![]() ![]() |
UnrecognizedCommand | The UnrecognizedCommand field gets an instance of the SmtpResponse structure that represents a 500 5.3.3 Unrecognized command response. |
![]() ![]() |
UnrecognizedParameter | The UnrecognizedParameter field gets an instance of the SmtpResponse structure that represents a 501 5.5.4 Unrecognized parameter response. |
![]() ![]() |
UnsupportedCommand | The UnsupportedCommand field gets an instance of the SmtpResponse structure that represents a 550 5.7.1 Command not allowed response. |
Top