home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_07.cab / CDO_JScript.asp < prev    next >
Text File  |  1997-10-25  |  954b  |  41 lines

  1. <% @Language=JScript    %>
  2.  
  3.  
  4. <HTML>
  5.     <HEAD>
  6.         <TITLE>CDO Component</TITLE>
  7.     </HEAD>
  8.  
  9.  
  10.     <BODY bgcolor="white" topmargin="10" leftmargin="10">
  11.         
  12.         <!-- Display Header -->
  13.  
  14.         <font size="4" face="Arial, Helvetica">
  15.         <b>CDO Component</b></font><p>   
  16.  
  17.         This sample demonstrates how to use the Collaboration
  18.         Data Objects for NTS Component to send a simple
  19.         e-mail message.
  20.  
  21.         <p>To actually send the message, you must have the SMTP
  22.         Server that comes with the Windows NT Option Pack Installed.
  23.  
  24.         <%
  25.             var myMail;
  26.             myMail = Server.CreateObject("CDONTS.NewMail");
  27.  
  28.             // For demonstration proposes, both From and
  29.             // To properties are set to the same address.
  30.         
  31.             myMail.From = "someone@Microsoft.com";
  32.             myMail.To = "someone@Microsoft.com";
  33.         
  34.             myMail.Subject = "Sample";
  35.             myMail.Body = "I hope you like the sample";
  36.             
  37.             myMail.Send();
  38.         %>
  39.     </BODY>
  40. </HTML>
  41.