Platform SDK: CDO 1.2.1 |
The folder.asp file renders the message contents of a folder. This script file calls the following functions:
BAuthenticateUser is called to ensure that the user is authenticated. See the description in logon.inc.
CheckAMSession is called to check for and return a CDO session in the Session object. See the description in logon.inc.
The folder.asp script retrieves the CDO session with the following command:
set objAMSession= Session( "AMSession")
If no session can be retrieved, an error message is displayed.
This file attempts to create a rendering object to render the Inbox folder of the logged-on user. In the following line, it opens the Inbox folder object for reading:
objFolderRenderer.DataSource= objAMSession.Inbox.Messages
The following line displays the user's Inbox folder and its contents:
objFolderRenderer.Render 1, 0, 0, Response