home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 September / CHIPCD_9_99.iso / software / uaktualnienia / OptionPackPL / iis4_06.cab / samp91ir.asp < prev    next >
Text File  |  1998-04-27  |  2KB  |  40 lines

  1.  <% If Request("DontFrame")<>1 Then Response.Redirect "/iissamples/sdk/asp/docs/SampFram.asp?ovfile=/iishelp/iis/htm/sdk/samp91ir.asp&srcfile=Components/CDO" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  3. <HTML>
  4. <HEAD>
  5. <META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
  6. <title>Collaboration Data Objects</title>
  7. <script language="JavaScript">
  8.  
  9.     szNavVersion = navigator.appVersion
  10.  
  11.     if (navigator.appName == "Microsoft Internet Explorer") {
  12.     if (szNavVersion.indexOf ("4.") >= 0) {
  13.         document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/spidie4.css">');
  14.     } else {
  15.         document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/spidie3.css">');
  16.     }
  17.     }
  18.     else if (navigator.appName == "Netscape") {
  19.     document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/spidie4.css">');
  20.     }
  21.     else {
  22.     document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/spidie3.css">');
  23.     }
  24.  
  25. </script>
  26. <META NAME="DESCRIPTION" CONTENT="Internet Information Server reference information"></HEAD>
  27. <BODY BGCOLOR=#FFFFFF TEXT=#000000>
  28. <font face="Verdana, Arial, Helvetica">
  29. <h3><a name="_collaboration_data_objects"></a>Collaboration Data Objects</h3>
  30. <p>
  31. 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>
  32. <p>
  33. 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>
  34. <p>
  35. <b>Note</b>  The CDO component is only available with Windows NT® Server.</p>
  36. <hr class="iis" size="1">
  37. <p align="center"><em><a href="/iishelp/common/colegal.htm">© 1997 by Microsoft Corporation. All rights reserved.</a></em></p>
  38. </BODY>
  39. </HTML>
  40.