SMTPCOMMAND enumeration
[SMTPCOMMAND is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Enumerates the Simple Mail Transport Protocol (SMTP) commands that have been issued to the server and the various states following an action.
Syntax
typedef enum tagSMTPCOMMAND {
SMTP_NONE = 0,
SMTP_BANNER = 1,
SMTP_CONNECTED = 2,
SMTP_SEND_MESSAGE = 3,
SMTP_AUTH = 4,
SMTP_EHLO = 5,
SMTP_HELO = 6,
SMTP_MAIL = 7,
SMTP_RCPT = 8,
SMTP_RSET = 9,
SMTP_QUIT = 10,
SMTP_DATA = 11,
SMTP_DOT = 12,
SMTP_SEND_STREAM = 13,
SMTP_CUSTOM = 14
} ACCESSTYPE;
Constants
-
SMTP_NONE
-
Indicates no current command.
-
SMTP_BANNER
-
Indicates that a new server connection has been established and that the client has received the server's welcome banner. The SMTP transport is attempting to send either the HELO or EHLO command to the server.
-
SMTP_CONNECTED
-
Indicates that an authenticated connection has been established with the server.
-
SMTP_SEND_MESSAGE
-
Indicates that the SMTP transport has finished sending the message.
-
SMTP_AUTH
-
Indicates that an AUTH command has been sent to the server.
-
SMTP_EHLO
-
Indicates that an EHLO command has been sent to the server and that the SMTP transport is attempting to authenticate the connection.
-
SMTP_HELO
-
Indicates that a HELO command has been sent to the server and that the SMTP transport is attempting to authenticate the connection.
-
SMTP_MAIL
-
Indicates that a MAIL FROM: command has been sent to the server and that the SMTP transport is attempting to send the message.
-
SMTP_RCPT
-
Indicates that a RCPT TO: command has been sent to the server and that the SMTP transport is attempting to send the message to the next recipient.
-
SMTP_RSET
-
Indicates that a RSET command has been sent to the server. If a message was interrupted, the SMTP transport may try to resend.
-
SMTP_QUIT
-
Indicates that a QUIT command has been sent to the server and that the SMTP transport is closing the socket on the client.
-
SMTP_DATA
-
Indicates that a DATA command has been sent to the server and that the SMTP transport is attempting to send the message stream.
-
SMTP_DOT
-
Indicates that a DOT command has been sent to the server and that the SMTP transport is cleaning up (for example, it releases the message object) and sets the current command to SMTP_SEND_MESSAGE.
-
SMTP_SEND_STREAM
-
Indicates that the SMTP transport has finished sending the message stream.
-
SMTP_CUSTOM
-
Indicates that a custom protocol command has been sent.
Requirements
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Product |
Outlook Express 6.0 |
Header |
|
IDL |
|