SAMPLE: Cdoasp.exe Creates Simple Mail Client Using CDO and ASP

ID: Q244587


The information in this article applies to:
  • Collaboration Data Objects (CDO), version 1.21


SUMMARY

Cdoasp.exe is a collection of Active Server Pages (ASP) pages that uses CDO to access a mailbox on a Microsoft Exchange Server and provide these basic mailing functions:

  • Browsing through the Microsoft Exchange folders for that mailbox (using a treeview control)


  • Opening mail


  • Sending mail


  • Replying to mail


  • Forwarding mail


  • Deleting mail


  • Finding information in the address book



MORE INFORMATION

The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:

Cdoasp.exe
For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

Filename Size Purpose
Mainpage.asp 1KB Default page that loads the two vertical frames.
LftFrame.asp 6KB Holds the main treeview control and the log on text.
ListMail.asp 7KB Contains a list box to hold messages.
NewMail.asp 3KB Holds the template for a new mail message.
Open.asp 2KB Holds the template for opening an old message.
Reply.asp 5KB Holds the template for the reply to a message.
Forward.asp 5KB Holds the template for forwarding a message.
Addbook.asp 3KB Displays a combo box listing all the address lists available.
Blank.asp 1KB Used as the startup page when the main page is loaded in the beginning.
Readme.txt 4KB Gives descriptions about what each page does.


This sample assumes:

  • You have all the permissions set on your Internet Information Server (IIS) server so that you can access Exchange from the IIS server. More information on exchange permissions and security can be found in the following MSDN article:


  • Getting Started with ASP Messaging
  • You have the treeview control (Mscomctl.ocx) registered.



Steps to use this sample:

  1. Extract the Cdoasp.exe file in a folder under your wwwroot\.. folder.


  2. Set the security for the folder to Windows NT Challenge/Response.


  3. Load the file Mainpage.asp in your browser by typing the full path, which will be http:\\IISservername\<foldername>\Mainpage.asp.


  4. Enter your Exchange server name and mailbox alias in the left frame and click logon. A treeview control will appear showing all of your folders except Tasks, Totes, Journal, and Contacts. You will also see New Mail and Address Book links.


  5. Expand the treeview control, and when you click on your folder, you will see the messages in a list box on the right.


  6. To use the address book, click Address Book to look up information in your address book.


  7. Click New Mail to bring up a form to fill out and send mail.


Additional query words:

Keywords : kbASP kbCDO kbCDO121 kbMsg kbVBp kbGrpMsg kbDSupport
Version : WINDOWS:1.21
Platform : WINDOWS
Issue type :


Last Reviewed: February 2, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.