Platform SDK: SMTP Server Events |
[This is preliminary documentation and subject to change.]
The ISmtpOutCommandContext::QueryCommandKeywordSize method returns the size, in bytes (chars), of the current command keyword.
HRESULT QueryCommandKeywordSize( [out] DWORD *pdwSize );
An SMTP command is made up of a keyword and arguments. For example, the SMTP command
EHLO exchange.microsoft.com\r\n
has the "EHLO" command keyword. The keyword size in this case would be 4, meaning 4 bytes in size.