分享

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

 kenwang 2005-12-28

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

Article ID : 244587
Last Review : August 5, 2004
Revision : 1.0
This article was previously published under Q244587

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:
/TD> Browsing through the Microsoft Exchange folders for that mailbox (using a treeview control)
/TD> Opening mail
/TD> Sending mail
/TD> Replying to mail
/TD> Forwarding mail
/TD> Deleting mail
/TD> Finding information in the address book

MORE INFORMATION

The following file is available for download from the Microsoft Download Center:
DownloadDownload Cdoasp.exe now (http://download.microsoft.com/download/cdo/sample/1.21/win98/en-us/cdoasp.exe)
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 (http://support.microsoft.com/kb/119591/EN-US/) How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

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:

/TD> 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 (http://premium.microsoft.com/msdn/library/techart/msdn_aspmess.htm)
/TD> 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.

APPLIES TO
/TD> Microsoft Collaboration Data Objects 1.21
Keywords: 
kbdownload kbgraphxlinkcritical kbmsg KB244587

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多