Platform SDK: SMTP Server Events

ISmtpOutCommandContext::QueryCurrentRecipientIndex

[This is preliminary documentation and subject to change.]

The ISmtpOutCommandContext::QueryCurrentRecipientIndex method returns the current recipient index.

HRESULT QueryCurrentRecipientIndex(
  [out]  DWORD  *pdwRecipientIndex
);

Parameters

pdwRecipientIndex
On successful return, contains the current recipient index.

Return Values

Remarks

The out-command context contains an internal list of recipients for the message organized as an array. The QueryCurrentRecipientIndex returns the current index within the array of recipients.