Chester County Web Design, Hosting, Scripting, Marketing, eCommerce, Virtual Tours

  

 

 

 

 

 

 



Web Services and Hosting Tailored to your needs

 

Introduction

Sending e-mail using Active Server Pages (ASP) from your ChescoWeb hosted web site is easy with CDONTS (Collaboration Data Objects for Windows NT® Server).

CDONTS can send mail in either plain text or HTML format.

The steps required:

  • Create the object

  • Define the parameters

  • Send the message

  • Destroy the object

CDONTS Support


Learn More

 

Creating the object

Use the following code to create the CDONTS mail object.

<%
'Create the CDO-NTS Object
Dim obj_CDONTS
Set obj_CDONTS = Server.CreateObject ("CDONTS.NewMail")
%>

CDONTS.NewMail Method

 

Defining  the Parameters

Set the parameters as follows to send a simple message in plain text format.

<%
'Define the Mail Parameters
obj_CDONTS.From = "support@chescoweb.net"
obj_CDONTS.To = "anyone@domainname.com"
obj_CDONTS.subject = "Sample CDONTS code"
obj_CDONTS.body = "This is a sample message."
%>

Simple CDONTS Parameters

Learn More

Sending the Message

Once all the parameters are set, send the message

<%
'Send the message
obj_CDONTS.Send()
%>

CDONTS.send Method

Learn More

Destroy the object

In order to remove the object from memory, you must set it to "nothing"

<%
'Release the memory
set obj_CDONTS = nothing
%>

Set CDONTS to "nothing"

 

 
 

 


 

Copyright© 1999-2007 ChescoWeb, LLC

     

Policy | Site Map