The Premier Resource for Microsoft Collaboration Data Objects
This sample Microsoft Active Server Page application displays a Microsoft Exchange Server public folder with messages via CDO anonymous access, without using the standard Outlook Web Access interface.
With the latest update attachments are now supported. You can now use the Outlook form to add attachments to the items. When viewing a headline in the Web browser the attachments will be displayed with an active hyperlink and a generic icon. Clicking on the attachment will open it with the appropriate application. Note that this application must be installed on the client computer.
The latest 10 items of the particular public folder are displayed in a colored box with the posting date at the left hand and the subject at the right hand. A visitor can open a single item by simply clicking on the headline:
If a user clicks on the headline the content of the selected public folder item is displayed:
Also a Microsoft Outlook 98/200 form is included to post new headlines into the public folder:
This sample is especially useful if you want to let marketing staff post new headlines to your Intra/Internet Web site without editing HTML files manually.
To use the application start your browser, enter the URL 'http://www.yourdomain.com/bulletinboard' and the HTML page will be loaded.
If you want to run this application on top of Microsoft Exchange 2000 Server you need to follow the steps outlined in the Microsoft Knowledge Base article Q166599 - XWEB: .MMP file Created by MS Exchange Active Server, even if the article talks about Exchange 5.0 Server and Internet Information Server 3.0. Otherwise CDO 1.21 will not be able to use a dynamic MAPI profile to logon anonymously to the Exchange 2000 Server.
The current version of the CDO HTML Rendering library doesn't support embedded messages and shortcuts on items. If you attach a shortcut to another Exchange/Outlook folder or item you'll get a message that this isn't supported yet. The same applies if a message is embedded using 'Insert', 'Item' in Microsoft Outlook.
The folder ID of the public folder in question needs to be set manually into a configuration file called 'Global.inc'. The folder ID can be obtained with another sample Microsoft Outlook form, which is described below.
The sort order of the items can't be changed with this sample. The newest item is always displayed at the top of the list of headlines.
After installing the Outlook security update this sample will stop working properly because of changes made by Microsoft. For more info on the Outlook security update please check Outlook e-mail Security Update
Note that the Office/Outlook 2000 setup does not install CDO 1.21 by default. You need to run the Office/Outlook 2000 setup and add CDO 1.21 as custom option.
The Microsoft Internet Information Server anonymous account (default 'IUSR_<YourServerName>') must have 'Log On Locally' rights, granted with the Microsoft Windows NT Server 'User Manager' program. To check if the account does work properly try to logon with this account on the Microsoft Windows NT Server which should host the Microsoft Active Server Application in question.
Make sure that Microsoft Exchange Server with Microsoft Outlook Web
Access is installed and running properly. To check if Outlook Web
Access is running try to load the following URL into your browser:
'http://www.yourdomain.com/exchange/logon.asp' and check if you can logon properly to your Microsoft Exchange mailbox.
At least 'Read' and 'Folder visible' permissions must be set for anonymous access to the particular Microsoft Exchange Server public folder. This can be done via the permissions tab in Microsoft Outlook or the Microsoft Exchange admin program and is described below.
This sample should run without modifications with any language version of Microsoft Exchange Server 5.x. It is built and checked for a proper function using the following environment:
|bboard.zip (21 Kbyte) ASP Application Files||The Microsoft Active Server Pages application.
To install the application, unzip all files to a new directory called 'bulletinboard'. Make sure that the Microsoft Internet Information Server anonymous account (default 'IUSR_<YourServerName>') does have at least 'Read' permissions on this directory.
The application includes the following files:
Use the Microsoft Internet Information Server Manager program to create a new virtual directory, name it 'bulletinboard' and allow at least 'Read Access' and 'Script Access'.
Right-click the created virtual directory and open the properties. Select the 'Documents' tab and check if 'Default.htm' is enabled as the default page.
Select the 'Directory Security' tab and click the 'Edit...' button of 'Anonymous Access and Authentication Control'. Make sure that 'Allow Anonymous Access' and 'Basic Authentication (Password is sent in Clear Text)' is enabled.
Click the 'Edit...' button of 'Account used for Anonymous Access' and check if the Microsoft Internet Information Server anonymous account (default 'IUSR_<YourServerName>') is entered in the 'Username' field and 'Enable Automatic Password Synchronization' is enabled.
Click 'OK' to close the dialog box.
Click the 'Edit...' button of 'Default domain for Basic Authentication' and make sure that the Microsoft Windows NT domain which is used to authenticate your NT accounts is entered. This is important if you are using a separate Microsoft Windows NT domain for authentication only.
Start the Microsoft Exchange admin program and expand the 'Protocols' container of your Microsoft Exchange Site in the left-hand pane. Open the 'HTTP (Web) Site Settings' in the right-hand pane.
Make sure that 'Enable protocol' and 'Allow anonymous users to access the anonymous public folders' are checked.
Select the 'Folder Shortcuts' tab and click the 'New...' button. Select the appropriate public folder and click 'OK' to close the dialog box.
The public folder in question should now appear in the list of 'Public folder shortcuts'. If so, highlight the public folder and click on the 'Properties...' button.
Click on the 'Client Permissions...' button of the folder properties dialog and make sure that 'Anonymous' does have at least the 'Editor' role. Click 'OK' until all dialog boxes are closed.
Note that sometimes it is necessary to reboot the Microsoft Windows NT/Exchange server to enable the settings properly.
|bboardform.zip (7 Kbyte) Outlook form||The Microsoft Outlook 98/2000 form to post new headlines to the
particular public folder.
Because the current version of the CDO HTML Rendering library doesn't support embedded messages and shortcuts on items this sample form checks if an attachment of this type is added to the new post. If so it asks the user if s/he wants to remove it.
Click on the Outlook form template to start it and choose 'Disable Macros' if the macro warning dialog is displayed. Change into the forms design mode and click on the publish form button to publish it to the appropriate public folder.
|fldrpropv.zip (10 Kbyte) Outlook form||The Microsoft Outlook 98/2000 form to obtain the folder ID of the
appropriate folder. This folder ID must be entered into the file 'Global.inc',
which includes the basic ASP application settings.
Click on the Outlook form template to start it and choose 'Enable Macros' if the macro warning dialog is displayed. Click on the button 'Browse...', select the folder in question and click 'OK'.
The folder properties are now displayed in the form. Copy the folder ID into the clipboard and open the file 'Global.inc' with a plain text editor (e. g. Notepad). This file contains global setting for the ASP application including the folder ID.
Locate the constant APP_FOLDER_ID and replace the value with the one from the clipboard. Make sure not to delete the double quotes and save the file.