Collaboration Data Objects

Overview

This sample demonstrates how to use the Collaboration Data Objects (CDO) component. The objects provided by CDO for NTS enable you to quickly and easily send and receive messages from your ASP script.

Code Tour

This sample first uses the Server.CreateObject method to create an instance of the NewMail object. Next, the most important NewMail properties are set, including the From, To, Subject, and Body properties. Finally, the Send method of the NewMail object is invoked to send the message to the specified destination.

Location

The VBScript and JScript versions of this script are available in the IIS samples directory, at ...\asp\components\CDO_VBScript.asp and ...\asp\components\CDO_JScript.asp.