Jump to main content

##

# TCPIP_SMTPC_MESSAGE_RESULT Enumeration

## C

    typedef enum {
    TCPIP_SMTPC_RES_OK = 0,
    TCPIP_SMTPC_RES_PENDING = 1,
    TCPIP_SMTPC_RES_MESSAGE_ERROR = -1,
    TCPIP_SMTPC_RES_MESSAGE_SERVER_ERROR = -2,
    TCPIP_SMTPC_RES_MESSAGE_RCPT_ERROR = -3,
    TCPIP_SMTPC_RES_MESSAGE_BUFFER_ERROR = -4,
    TCPIP_SMTPC_RES_MESSAGE_FILE_ERROR = -5,
    TCPIP_SMTPC_RES_MESSAGE_AUTH_REQUIRED = -6,
    TCPIP_SMTPC_RES_MESSAGE_AUTH_LEN_ERROR = -7,
    TCPIP_SMTPC_RES_MESSAGE_ADDR_LEN_ERROR = -8,
    TCPIP_SMTPC_RES_MAIL_BUSY = -9,
    TCPIP_SMTPC_RES_DNS_ERROR = -10,
    TCPIP_SMTPC_RES_SKT_OPEN_ERROR = -11,
    TCPIP_SMTPC_RES_SKT_BIND_ERROR = -12,
    TCPIP_SMTPC_RES_SKT_CONNECT_TMO = -13,
    TCPIP_SMTPC_RES_SKT_TLS_ERROR = -14,
    TCPIP_SMTPC_RES_SERVER_TMO = -15,
    TCPIP_SMTPC_RES_CONNECTION_REJECT = -16,
    TCPIP_SMTPC_RES_CONNECTION_CLOSE = -17,
    TCPIP_SMTPC_RES_HELLO_REJECT = -18,
    TCPIP_SMTPC_RES_AUTH_UNKNOWN = -19,
    TCPIP_SMTPC_RES_AUTH_LOGIN_REJECT = -20,
    TCPIP_SMTPC_RES_AUTH_LOGIN_SERVER_ERROR = -21,
    TCPIP_SMTPC_RES_AUTH_REJECT = -22,
    TCPIP_SMTPC_RES_TLS_REJECT = -23,
    TCPIP_SMTPC_RES_TLS_FAILED = -24,
    TCPIP_SMTPC_RES_TLS_TMO = -25,
    TCPIP_SMTPC_RES_MAIL_FROM_REJECT = -26,
    TCPIP_SMTPC_RES_MAIL_RCPT_REJECT = -27,
    TCPIP_SMTPC_RES_MAIL_DATA_REJECT = -28,
    TCPIP_SMTPC_RES_MAIL_BODY_REJECT = -29,
    TCPIP_SMTPC_RES_INITIALIZE_ERROR = -40,
    TCPIP_SMTPC_RES_INTERNAL_ERROR = -41
    } TCPIP_SMTPC_MESSAGE_RESULT;

## Description

Enumeration: TCPIP_SMTPC_MESSAGE_RESULT.

Enumeration describing the possible result codes returned by the SMTPC client.

## Members

Members | Desciption
--- | ---
TCPIP_SMTPC_RES_OK = 0 | OK, operation successful.
TCPIP_SMTPC_RES_PENDING = 1 | Operation in progress.
TCPIP_SMTPC_RES_MESSAGE_ERROR = -1 | Mail message error.
TCPIP_SMTPC_RES_MESSAGE_SERVER_ERROR = -2 | Message indicated wrong mail server.
TCPIP_SMTPC_RES_MESSAGE_RCPT_ERROR = -3 | Message mail recipient error: from, to, etc.
TCPIP_SMTPC_RES_MESSAGE_BUFFER_ERROR = -4 | Attachment buffer error.
TCPIP_SMTPC_RES_MESSAGE_FILE_ERROR = -5 | Attachment file error.
TCPIP_SMTPC_RES_MESSAGE_AUTH_REQUIRED = -6 | Server requires authentication but username or password haven't been provided.
TCPIP_SMTPC_RES_MESSAGE_AUTH_LEN_ERROR = -7 | Provided credentials are too long, buffer overflow.
TCPIP_SMTPC_RES_MESSAGE_ADDR_LEN_ERROR = -8 | Email address too long, buffer overflow.
TCPIP_SMTPC_RES_MAIL_BUSY = -9 | All mail connections are busy; try later.
TCPIP_SMTPC_RES_DNS_ERROR = -10 | Failure to resolve server name.
TCPIP_SMTPC_RES_SKT_OPEN_ERROR = -11 | Failure to open a communication socket.
TCPIP_SMTPC_RES_SKT_BIND_ERROR = -12 | Failure to bind a socket to the mail server.
TCPIP_SMTPC_RES_SKT_CONNECT_TMO = -13 | Connection to mail server timeout.
TCPIP_SMTPC_RES_SKT_TLS_ERROR = -14 | TLS is required but failed to start TLS on the communication socket.
TCPIP_SMTPC_RES_SERVER_TMO = -15 | Server timeout.
TCPIP_SMTPC_RES_CONNECTION_REJECT = -16 | Server rejected the connection.
TCPIP_SMTPC_RES_CONNECTION_CLOSE = -17 | Server closed the connection.
TCPIP_SMTPC_RES_HELLO_REJECT = -18 | Server rejected the hello greeting.
TCPIP_SMTPC_RES_AUTH_UNKNOWN = -19 | Server requires authentication mechanism unsupported by SMTPC Currently LOGIN and PLAIN authentications are supported.
TCPIP_SMTPC_RES_AUTH_LOGIN_REJECT = -20 | Server rejected the login authentication request.
TCPIP_SMTPC_RES_AUTH_LOGIN_SERVER_ERROR = -21 | uUnexpected server reply to login authentication request.
TCPIP_SMTPC_RES_AUTH_REJECT = -22 | Server rejected the supplied authentication.
TCPIP_SMTPC_RES_TLS_REJECT = -23 | Server rejected the TLS start.
TCPIP_SMTPC_RES_TLS_FAILED = -24 | TLS session negotiation failed.
TCPIP_SMTPC_RES_TLS_TMO = -25 | TLS session timeout.
TCPIP_SMTPC_RES_MAIL_FROM_REJECT = -26 | Server rejected the "from" address.
TCPIP_SMTPC_RES_MAIL_RCPT_REJECT = -27 | Server rejected the "recipient" address.
TCPIP_SMTPC_RES_MAIL_DATA_REJECT = -28 | Server rejected the "data" field.
TCPIP_SMTPC_RES_MAIL_BODY_REJECT = -29 | Server rejected the mail body.
TCPIP_SMTPC_RES_INITIALIZE_ERROR = -40 | Module is not properly initialized, API call is invalid.
TCPIP_SMTPC_RES_INTERNAL_ERROR = -41 | ISnternal failure, should not happen.

## Remarks

None.