' SMTP Custom Control
' (C) Copyright 1994 by Distinct Corporation
' All rights reserved

' actions
Global Const ACTION_NONE = 0
Global Const ACTION_CONNECT = 1
Global Const ACTION_DISCONNECT = 2
Global Const ACTION_MAIL = 3
Global Const ACTION_SEND = 4
Global Const ACTION_SEND_OR_MAIL = 5
Global Const ACTION_SEND_AND_MAIL = 6
Global Const ACTION_DATA = 7
Global Const ACTION_HELP = 8
Global Const ACTION_EXPAND = 9
Global Const ACTION_VERIFY = 10
Global Const ACTION_TURN = 11
Global Const ACTION_NOOP = 12
Global Const ACTION_RESET = 13
Global Const ACTION_ABORT = 14

' error codes
Global Const ERR_HOST_NOT_DEFINED = 1
Global Const ERR_USER_NOT_DEFINED = 2
Global Const ERR_NOT_CONNECTED = 3
Global Const ERR_IN_ACTION = 4
Global Const ERR_CANNOT_CONNECT = 5
Global Const ERR_CANNOT_GET_LOCAL = 6
Global Const ERR_EXPR_NOT_DEFINED = 7
Global Const ERR_SENDER_NOT_DEFINED = 8
Global Const ERR_RCPT_NOT_DEFINED = 9
Global Const ERR_INVALID_RECIPIENT = 10
Global Const ERR_CANNOT_SEND_DATA = 11
Global Const ERR_CANNOT_ABORT = 12

' return values
Global Const SMTP_SUCCESS = 1001
Global Const SMTP_FAILURE = 1002
Global Const SMTP_CANNOT_INITIALIZE = 1003
Global Const SMTP_CANNOT_INIT_WINSOCK = 1004
Global Const SMTP_OUT_OF_MEMORY = 1005
Global Const SMTP_UNKNOWN_HOST = 1006
Global Const SMTP_CANNOT_ALLOC_SOCKET = 1007
Global Const SMTP_CANNOT_BIND_SOCKET = 1008
Global Const SMTP_HOST_NOT_RESPONDING = 1009
Global Const SMTP_CANNOT_SEND_COMMAND = 1010
Global Const SMTP_TIMED_OUT = 1011
Global Const SMTP_INVALID_HANDLE = 1012
Global Const SMTP_INVALID_OPTION = 1013
