Scripting Stuff Menu Header
Users/Groups
Active Directory
NIC/IP Addresses
OS/Hardware
Disk Quotas
Shares/Files/Sessions
Others
MS FTP Server
MS WWW Server
Application Pools
Others

Programs Menu Header

Miscellaneous Stuff Menu Header


Visitor #: 424677
MSN Search     windowsadminscripts.com www    

Script: Basic CDONTS Usage/Sample Script
This will only work on web servers that are running IIS 4 and IIS 5.

Below is sample code for using Microsoft's CDONTS ASP Email Component. This is just the code that sends the email out. You would pass information from a form to an asp page to gather the information you want to be mailed with. On the asp page you would include some of this sample code to send the form information you want to you or your customer.

You will want to change the following information in the sample code:
Message: This is where the actual "body" of the email is.
Subject: This is where you want to put the "subject" of the email.
ToAddress: This is where you want to put the "email address" of where the email is to be send to.
FromAddress: This is where you want to put the "email address" of where the email is to be send from.
Email Address To Send Sample CDONTS Code To: @   


Buy Helm Control Panel @ Servertastic.com Store


Copyright 2006 WindowsAdminScripts.com all rights reserved.