<% If Request("DontFrame")<>1 Then Response.Redirect "/iissamples/sdk/asp/docs/SampFram.asp?ovfile=/iishelp/iis/htm/sdk/samp91ir.asp&srcfile=Components/CDO" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<META NAME="DESCRIPTION" CONTENT="Internet Information Server reference information"></HEAD>
<BODY BGCOLOR=#FFFFFF TEXT=#000000>
<font face="Verdana, Arial, Helvetica">
<h3><a name="_collaboration_data_objects"></a>Collaboration Data Objects</h3>
<p>
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. </p>
<p>
This sample first uses the <b>Server.CreateObject</b> method to create an instance of the <b>NewMail</b> object. Next, the most important <b>NewMail</b> properties are set, including the <b>From</b>, <b>To</b>, <b>Subject</b>, and <b>Body</b> properties. Finally, the <b>Send</b> method of the <b>NewMail</b> object is invoked to send the message to the specified destination. </p>
<p>
<b>Note</b> The CDO component is only available with Windows NT® Server.</p>