Specifies the outcome of sending e-mail by using the System.Net.Mail.SmtpClient class.
The values in the System.Net.Mail.SmtpStatusCode enumeration specify reply status values sent by a Simple Mail Transfer Protocol (SMTP) server. The System.Net.Mail.SmtpException and System.Net.Mail.SmtpFailedRecipientsException classes contain SmtpException.StatusCode properties that return System.Net.Mail.SmtpStatusCode values.
SMTP is defined in RFC 2821 available at tp://www.ietf.org/.
Member Name | Description |
---|---|
BadCommandSequence |
The commands were sent in the incorrect sequence. |
CannotVerifyUserWillAttemptDelivery |
The specified user is not local, but the receiving SMTP service accepted the message and attempted to deliver it. This status code is defined in RFC 1123, which is available at tp://www.ietf.org/. |
ClientNotPermitted |
The client was not authenticated or is not allowed to send mail using the specified SMTP host. |
CommandNotImplemented |
The SMTP service does not implement the specified command. |
CommandParameterNotImplemented |
The SMTP service does not implement the specified command parameter. |
CommandUnrecognized |
The SMTP service does not recognize the specified command. |
ExceededStorageAllocation |
The message is too large to be stored in the destination mailbox. |
GeneralFailure |
The transaction could not occur. You receive this error when the specified SMTP host cannot be found. |
HelpMessage |
A Help message was returned by the service. |
InsufficientStorage |
The SMTP service does not have sufficient storage to complete the request. |
LocalErrorInProcessing |
The SMTP service cannot complete the request. This error can occur if the client's IP address cannot be resolved (that is, a reverse lookup failed). You can also receive this error if the client domain has been identified as an open relay or source for unsolicited e-mail (spam). For details, see RFC 2505, which is available at tp://www.ietf.org/. |
MailboxBusy |
The destination mailbox is in use. |
MailboxNameNotAllowed |
The syntax used to specify the destination mailbox is incorrect. |
MailboxUnavailable |
The destination mailbox was not found or could not be accessed. |
MustIssueStartTlsFirst |
The SMTP server is configured to accept only TLS connections, and the SMTP client is attempting to connect by using a non-TLS connection. The solution is for the user to set EnableSsl=true on the SMTP Client. |
Ok |
The email was successfully sent to the SMTP service. |
ServiceClosingTransmissionChannel |
The SMTP service is closing the transmission channel. |
ServiceNotAvailable |
The SMTP service is not available; the server is closing the transmission channel. |
ServiceReady |
The SMTP service is ready. |
StartMailInput |
The SMTP service is ready to receive the e-mail content. |
SyntaxError |
The syntax used to specify a command or parameter is incorrect. |
SystemStatus |
A system status or system Help reply. |
TransactionFailed |
The transaction failed. |
UserNotLocalTryAlternatePath |
The user mailbox is not located on the receiving server. You should resend using the supplied address information. |
UserNotLocalWillForward |
The user mailbox is not located on the receiving server; the server forwards the e-mail. |