home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 September
/
CHIPCD_9_99.iso
/
software
/
uaktualnienia
/
OptionPackPL
/
iis4_07.cab
/
CDO_VBScript.asp
< prev
next >
Wrap
Text File
|
1998-04-27
|
973b
|
42 lines
<% @Language=VBScript %>
<% Option Explicit %>
<HTML>
<HEAD>
<TITLE>CDO Component</TITLE>
</HEAD>
<BODY bgcolor="white" topmargin="10" leftmargin="10">
<!-- Display Header -->
<font size="4" face="Arial, Helvetica">
<b>CDO Component</b></font><p>
This sample demonstrates how to use the Collaboration
Data Objects for NTS Component to send a simple
e-mail message.
<p>To actually send the message, you must have the SMTP
Server that comes with the Windows NT Option Pack Installed.
<%
Dim myMail
Set myMail = Server.CreateObject("CDONTS.NewMail")
' For demonstration proposes, both From and To
' properties are set to the same address.
myMail.From = "someone@Microsoft.com"
myMail.To = "someone@Microsoft.com"
myMail.Subject = "Sample"
myMail.Body = "I hope you like the sample"
myMail.Send
%>
</BODY>
</HTML>