SocketTools .NET Edition

SmtpClient.ErrorCode Enumeration

The error codes used by the class.

[Visual Basic]
Public Enum SmtpClient.ErrorCode
[C#]
public enum SmtpClient.ErrorCode

Remarks

The ErrorCode enumeration specifies what error has occurred when a method fails. The current error code may be determined by checking the value of the LastError property.

Note that the last error code is only meaningful if the previous operation has failed.

Members

Member Name Description
None No error.
NotHandleOwner Handle not owned by the current thread.
FileNotFound The specified file or directory does not exist.
FileNotCreated The specified file could not be created.
OperationCanceled The blocking operation has been canceled.
InvalidFileType The specified file is a block or character device, not a regular file.
InvalidDevice The specified file type is invalid or not a regular file.
TooManyParameters The maximum number of function parameters has been exceeded.
InvalidFileName The specified file name contains invalid characters or is too long.
InvalidFileHandle Invalid file handle passed to function.
FileReadFailed Unable to read data from the specified file.
FileWriteFailed Unable to write data to the specified file.
OutOfMemory Out of memory.
AccessDenied Access denied.
InvalidParameter Invalid argument passed to function.
ClipboardUnavailable The system clipboard is currently unavailable.
ClipboardEmpty The system clipboard is empty or does not contain any text data.
FileEmpty The specified file does not contain any data.
FileExists The specified file already exists.
EndOfFile End of file.
DeviceNotFound The specified device could not be found.
DirectoryNotFound The specified directory could not be found.
InvalidBuffer Invalid memory address passed to function.
BufferTooSmall The specified buffer is not large enough to contain the data.
NoHandles No more handles are available to this process.
OperationWouldBlock The specified operation would block the current thread.
OperationInProgress A blocking operation is currently in progress.
AlreadyInProgress The specified operation is already in progress.
InvalidHandle Invalid handle passed to function.
InvalidAddress Invalid network address specified.
InvalidSize Datagram is too large to fit in specified buffer.
InvalidProtocol Invalid network protocol specified.
ProtocolNotAvailable The specified network protocol is not available.
ProtocolNotSupported The specified protocol is not supported.
SocketNotSupported The specified socket type is not supported.
InvalidOption The specified option is invalid.
ProtocolFamily Specified protocol family is not supported.
ProtocolAddress The specified address is invalid for this protocol family.
AddressInUse The specified address is in use by another process.
AddressUnavailable The specified address cannot be assigned.
NetworkUnavailable The networking subsystem is unavailable.
NetworkUnreachable The specified network is unreachable.
NetworkReset Network dropped connection on remote reset.
ConnectionAborted Connection was aborted due to timeout or other failure.
ConnectionReset Connection was reset by remote network.
OutOfBuffers No buffer space is available.
AlreadyConnected Connection already established with remote host.
NotConnected No connection established with remote host.
ConnectionShutdown Unable to send or receive data after connection shutdown.
OperationTimeout The specified operation has timed out.
ConnectionRefused The connection has been refused by the remote host.
HostUnavailable The specified host is unavailable.
HostUnreachable Remote host is unreachable.
TooManyProcesses Too many processes are using the networking subsystem.
TooManyThreads Too many threads have been created by the current process.
TooManySessions Too many client sessions have been created by the current process.
InternalFailure An unexpected internal error has occurred.
NetworkNotReady Network subsystem is not ready for communication.
InvalidVersion This version of the operating system is not supported.
NetworkNotInitialized The networking subsystem has not been initialized.
RemoteShutdown The remote host has initiated a graceful shutdown sequence.
InvalidHostName The specified hostname is invalid or could not be resolved.
HostNameNotFound The specified hostname could not be found.
HostNameRefused Unable to resolve hostname, request refused.
HostNameNotResolved Unable to resolve hostname, no address for specified host.
InvalidLicense The license for this product is invalid.
ProductNotLicensed This product is not licensed to perform this operation.
NotImplemented This function has not been implemented on this platform.
UnknownLocalhost Unable to determine local host name.
InvalidHostAddress Invalid host address specified.
InvalidServicePort Invalid service port number specified.
InvalidServiceName Invalid or unknown service name specified.
InvalidEventId Invalid event identifier specified.
OperationNotBlocking No blocking operation in progress on this socket.
SecurityNotInitialized Unable to initialize security interface for this process.
SecurityContext Unable to establish security context for this session.
SecurityCredentials Unable to open certificate store or establish security credentials.
SecurityCertificate Unable to validate the certificate chain for this session.
SecurityDecryption Unable to decrypt data stream.
SecurityEncryption Unable to encrypt data stream.
OperationNotSupported The specified operation is not supported.
InvalidProtocolVersion Invalid application protocol version specified.
NoServerResponse No data returned from server.
InvalidServerResponse Invalid data returned from server.
UnexpectedServerResponse Unexpected response code returned from server.
ServerTransactionFailed Server transaction failed.
ServiceUnavailable The service is currently unavailable.
ServiceNotReady The service is not ready, try again later.
ServerResyncFailed Unable to resynchronize with server.
InvalidProxyType Invalid proxy server type specified.
ProxyRequired Resource must be accessed through specified proxy.
InvalidProxyLogin Unable to login to proxy server using specified credentials.
ProxyResyncFailed Unable to resynchronize with proxy server.
InvalidCommand Invalid command specified.
InvalidCommandParameter Invalid command parameter specified.
InvalidCommandSequence Invalid command sequence specified.
CommandNotImplemented Specified command not implemented on this server.
CommandNotAuthorized Specified command not authorized for the current user.
CommandAborted Specified command was aborted by the remote host.
OptionNotSupported The specified option is not supported on this server.
RequestNotCompleted The current client request has not been completed.
InvalidUserName The specified username is invalid.
InvalidPassword The specified password is invalid.
InvalidAuthenticationType Invalid authentication protocol specified.
AuthenticationRequired User authentication is required.
AlreadyAuthenticated User has already been authenticated.
AuthenticationFailed Unable to authenticate the specified user.
InvalidMessagePart Message is not multipart or an invalid message part was specified.
InvalidMessageHeader The specified message header is invalid or has not been defined.
InvalidMessageBoundary The multipart message boundary has not been defined.
NoFileAttachment The current message part does not contain a file attachment.
UnknownFileType The specified file type could not be determined.
DataNotEncoded The specified data block could not be encoded.
DataNotDecoded The specified data block could not be decoded.
FileNotEncoded The specified file could not be encoded.
FileNotDecoded The specified file could not be decoded.
NoMessageText No message text.
InvalidCharacterSet Invalid character set specified.
InvalidEncodingType Invalid encoding type specified.
InvalidMessageNumber Invalid message number specified.
NoReturnAddress No valid return address specified.
NoValidRecipients No valid recipients specified.
InvalidRecipient The specified recipient address is invalid.
RelayNotAuthorized The specified domain is invalid or server will not relay messages.
InvalidDomain The specified domain name is invalid or not recognized.
InvalidSender The specified sender address is invalid or not recognized.
MessageNotDelivered Message not delivered to any of the specified recipients.
EndOfMessageData No more message data available to be read
InvalidMessageSize The specified message size is invalid.
MessageNotCreated The message could not be created in the specified mailbox.
NoMoreMailboxes No more mailboxes exist on this server.
InvalidTask The asynchronous task identifier is invalid.
TaskActive The asynchronous task has not finished.
TaskQueued The asynchronous task has been queued.
TaskSuspended The asynchronous task has been suspended.
TaskFinished The asynchronous task has finished.

Requirements

Namespace: SocketTools

Assembly: SocketTools.SmtpClient (in SocketTools.SmtpClient.dll)

Version: 12.0.3041.1380

See Also