Platform SDK: Exchange Server |
A message can have an attachment—additional data in the form of a file, another message, or an OLE object associated with it. This attachment appears either as an icon or metafile embedded within or adjacent to the main body of a message. A message can have zero, one, or many attachments. Attachments are always transmitted with the message.
An attachment object represents a document that is an attachment of a message. For more information on the attachment object, see the Active Messaging Library. To create a new attachment within a message, call the IMessage::CreateAttach method, which is implemented by information store providers.
For more information on accessing attachment objects through MAPI, see Message Transfer Envelopes and Attached Messages.