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 #: 267907
MSN Search     windowsadminscripts.com www    

Script: Basic CDOSYS Usage/Sample Script
This will only work on web servers that are running IIS 6 and later.

Below is sample code for using Microsoft's CDOSYS 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.
Mailer.TextBody: If you want to send the email in text format leave "Mailer.TextBody", if you want to send the email in HTML format change it to "Mailer.HTMLBody".
Email Address To Send Sample Code To: @   


Servertastic.com Store


Copyright 2006 WindowsAdminScripts.com all rights reserved.