Platform SDK: SMTP Server Events

IMailMsgRecipients::Commit

[This is preliminary documentation and subject to change.]

Commit all changes to a recipient to disk with optional asynchronous completion.

HRESULT Commit(
   [in] DWORD dwIndex,
   [in,unique] IMailMsgNotify *pNotify
);
dwIndex
Specifies the zero-based index of the recipient to commit.
pNotify
A reference to the object through which asynchronous completion notifications are made. If this value is NULL, then the method will complete synchronously. Even if this value is non-NULL, the method may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING).

Return Values

Value Description
S_OK Success. The operation completed synchronously.
MAILMSG_S_PENDING Success. The operation is pending, and pNotify->Notify will be called with the result of the operation when it completes.

See Also

IMailMsgNotify Interface

IMailMsgNotify::Notify