Platform SDK: SMTP Server Events

IMailMsgProperties::SetContentSize

[This is preliminary documentation and subject to change.]

Sets the content size for the MailMsg object.

HRESULT SetContentSize(
  [in] DWORD dwSize,
  [in,unique] IMailMsgNotify *pNotify
);
dwSize
The new size in bytes for the content.
pNotify
Callback interface used to asynchronously notify you that the method has completion. If this value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the operation may still complete synchronously. In this case, the method returns S_OK instead of MAILMSG_S_PENDING.

Return Values

Value Description
S_OK Success.
MAILMSG_S_PENDING Success. The operation will complete asynchronously. When it completes, you will be notified through the interface you passed using the pNotify parameter. The result of the operation will be returned with the notification callback method.

Remarks

All content in excess of the new content size is lost once this method completes.

See Also

IMailMsgNotify Interface

IMailMsgNotify::Notify