How To Programmatically Embed a Hyperlink to a Message (263258)
The information in this article applies to:
- Collaboration Data Objects (CDO) 1.2
- Collaboration Data Objects (CDO) 1.21
This article was previously published under Q263258 SUMMARY
It may be necessary to send a message that contains a shortcut (or hyperlink) to a public folder or message. By clicking on the hyperlink, the recipient can easily reach the specified public folder or message. Note that to open items or files from a public folder, the recipient must have the appropriate permissions to the folder.
You can use Extended Messaging Application Programming Interface (MAPI) or the Microsoft Outlook Object Model to embed hyperlinks to messages. In the Outlook Object Model, you need to add the hyperlink as an attachment to the message. You also need to specify olEmbeddedItem(5) as the olAttachmentType constant.
CDO 1.2x does not directly support embedding hyperlinks to messages. With CDO 1.2x, you can only attach a copy of a message into another message, specifying the attachment type as CdoEmbeddedMessage. This article presents a limited workaround for that.
REFERENCESFor additional information on using hyperlinks in Outlook, click the article number below
to view the article in the Microsoft Knowledge Base:
225007 OL2000: Using Hyperlinks to Access Outlook Folders and Items
Modification Type: | Minor | Last Reviewed: | 7/2/2004 |
---|
Keywords: | kbhowto kbMsg kbOutlookObj KB263258 |
---|
|