Platform SDK: SMTP Server Events

IMailMsgProperties::Commit

[This is preliminary documentation and subject to change.]

Commit all changes to physical storage with optional asynchronous completion.

HRESULT Commit([in,unique] IMailMsgNotify *pNotify);
pNotify
Interface to notify if the method is to run asynchronously. 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 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