Platform SDK: SMTP Server Events |
[This is preliminary documentation and subject to change.]
The IMailMsgProperties interface defines methods used to access transport envelope properties and message content for a MailMsg object.
Method | Description |
---|---|
PutProperty | Write a property. |
GetProperty | Get a property. |
Commit | Commit properties to disk. |
PutStringA | Write a string property. |
GetStringA | Get a string property. |
PutStringW | Write a UNICODE string property. |
GetStringW | Get a UNICODE string property. |
PutDWORD | Write a DWORD property. |
GetDWORD | Get a DWORD property. |
PutBool | Write a BOOL property. |
GetBool | Get a BOOL property. |
GetContentSize | Get the content size in bytes (with asynchronous completion). |
ReadContent | Read content from the object. |
WriteContent | Write content into the object. |
CopyContentToFile | Write (copy) content to the specified file. |
CopyContentToFileAtOffset | Write (copy) content to file starting at the specified byte offset. |
CopyContentToStream | Write (copy) content to the object exposing the IStream interface. |
ForkForRecipients | Return a new MailMsg object for different recipients. |
RebindAfterFork | Allocates storage and re-binds the MailMsg object. |
The IMailMsgProperties interface is primary for a MailMsg object. Through this interface, the following functionality is provided:
A MailMsg object that is bound to the store driver has its properties and content automatically persisted to physical storage. Updates to the physically stored contents only occur when the IMailMsgProperties::Commit method is invoked.
Unbound MailMsg objects do not have properties or message content persisted to physical storage.