SmtpResponse Members

Include Protected Members
Include Inherited 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
Public method SmtpResponse The SmtpResponse constructor initializes a new instance of the SmtpResponse structure.

Top

Properties

  Name Description
Public property EnhancedStatusCode The EnhancedStatusCode property gets the enhanced status code for the response.
Public property SmtpResponseType The SmtpResponseType property gets a value that indicates the classification of the Simple Mail Transfer Protocol (SMTP) response.
Public property StatusCode The StatusCode property gets the status code for the response.
Public property 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
Public methodStatic member ConnectionDroppedDueTo
Public method 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).)
Public method Equals(SmtpResponse) The Equals method compares the current instance of the SmtpResponse structure to the SmtpResponse structure specified by the comparand parameter.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode The GetHashCode method gets the hash code for the message. (Overrides ValueType.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public methodStatic member 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.
Public methodStatic member QueuedMailForDelivery(String, String, String)
Public method ToString The ToString method converts the current instance of the SmtpResponse structure to a Unicode string. (Overrides ValueType.ToString().)
Public methodStatic member 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

Fields

  Name Description
Public fieldStatic member 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.
Public fieldStatic member BadCommandSequence The BadCommandSequence field gets an instance of the SmtpResponse structure that represents a 503 5.5.1 Bad sequence of commands response.
Public fieldStatic member ConnectionDroppedByAgentError The ConnectionDroppedByAgentError field gets an instance of the SmtpResponse structure that represents a 421 4.3.2 System not accepting network messages response.
Public fieldStatic member ConnectionTimedOut The ConnectionTimedOut field gets an instance of the SmtpResponse structure that represents a 421 4.4.1 Connection timed out response.
Public fieldStatic member DataTransactionFailed The DataTransactionFailed field gets an instance of the SmtpResponse structure that represents a 451 4.3.2 System not accepting network messages response.
Public fieldStatic member Empty The Empty field gets an instance of the SmtpResponse structure that represents an empty, invalid response.
Public fieldStatic member IncorrectTlsAuthLevel
Public fieldStatic member InsufficientResource The InsufficientResource field gets an instance of the SmtpResponse structure that represents a 452 4.3.1 Insufficient system resources response.
Public fieldStatic member InvalidAddress The InvalidAddress field gets an instance of the SmtpResponse structure that represents a 501 5.1.3 Invalid address (recipient) response.
Public fieldStatic member InvalidArguments The InvalidArguments field gets an instance of the SmtpResponse structure that represents a 501 5.5.4 Invalid arguments response.
Public fieldStatic member InvalidContent The InvalidContent field gets an instance of the SmtpResponse structure that represents a 554 5.6.0 Invalid Content response.
Public fieldStatic member InvalidContentBareLinefeeds
Public fieldStatic member 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.
Public fieldStatic member 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.
Public fieldStatic member InvalidSenderAddress The InvalidSenderAddress field gets an instance of the SmtpResponse structure that represents a 501 5.1.7 Invalid Address (Sender) response.
Public fieldStatic member MailFromOk The MailFromOk field gets an instance of the SmtpResponse structure that represents a 250 2.1.0 Sender OK response.
Public fieldStatic member 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.
Public fieldStatic member 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.
Public fieldStatic member NoopOk The NoopOk field gets an instance of the SmtpResponse structure that represents a 250 2.0.0 OK response.
Public fieldStatic member RcptNotFound The RcptNotFound field gets an instance of the SmtpResponse structure that represents a 550 5.1.1 User unknown response.
Public fieldStatic member RcptToOk The RcptToOk field gets an instance of the SmtpResponse structure that represents a 250 2.1.5 Recipient OK response.
Public fieldStatic member RecipientAddressExpanded The RecipientAddressExpanded field gets an instance of the SmtpResponse structure that represents a 250 2.1.5 Recipient Address was Expanded response.
Public fieldStatic member RecipientAddressExpandedByRedirectionAgent
Public fieldStatic member 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.
Public fieldStatic member 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.
Public fieldStatic member ServiceUnavailable The ServiceUnavailable field gets an instance of the SmtpResponse structure that represents a 421 Service not available, closing transmission channel response.
Public fieldStatic member 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.
Public fieldStatic member SuccessfulConnection The SuccessfulConnection field gets an instance of the SmtpResponse structure that represents a 250 Success response.
Public fieldStatic member SystemMisconfiguration The SystemMisconfiguration field gets an instance of the SmtpResponse structure that represents a 550 5.3.5 System incorrectly configured response.
Public fieldStatic member TimeoutOccurred The TimeoutOccurred field gets an instance of the SmtpResponse structure that represents a 451 Timeout waiting for client input response.
Public fieldStatic member TlsDomainRequired
Public fieldStatic member UnableToRoute The UnableToRoute field gets an instance of the SmtpResponse structure that represents a 554 5.4.4 Unable to route response.
Public fieldStatic member UnrecognizedCommand The UnrecognizedCommand field gets an instance of the SmtpResponse structure that represents a 500 5.3.3 Unrecognized command response.
Public fieldStatic member UnrecognizedParameter The UnrecognizedParameter field gets an instance of the SmtpResponse structure that represents a 501 5.5.4 Unrecognized parameter response.
Public fieldStatic member UnsupportedCommand The UnsupportedCommand field gets an instance of the SmtpResponse structure that represents a 550 5.7.1 Command not allowed response.

Top