Attachment Object
Parent object: Attachments collection.
A new object reference is returned from the Add method of the Attachments Collection.
A file or message that is attached to the current Message object. If the current Message object is still in the Inbox, the properties of the Attachment object are all read-only. If, however, the Message object is being prepared for delivery, these properties are all read/write. Remember that CDO for NTS does not control how (or if) the Attachment is displayed in the final Message object. This is controlled by the mail client being used. Table 15.4 and Table 15.5 list the properties and methods of the Attachment object, respectively.
Table 15.4. Attachment Object Properties
|
Property |
Description |
|---|---|
|
ContentBase |
The Content-Base header of a MIME message attachment. For example, if all the relative URLs in your MIME message are valid only for http://www.mycorp.com, then the ContentBase value should be http://www.mycorp.com/.Once the ContentBase is set, the relative URLs in the message have meaning. For example, suppose you have a MIME email message containing an image with the SRC property set to /images/myimg.jpg. The ContentBase lets the mail client know that this means http://www.mycorp.com/images/myimg.jpg. |
|
ContentID |
The Content-ID header of a MIME message attachment. This is read-only for messages coming in. CDO does not generate Content-ID headers for outgoing messages and attachments. For more information on Content-ID headers, see ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access