Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDONTS???????

Status
Not open for further replies.

mad411

Technical User
Apr 4, 2002
17
IN
hi all the experts,

being a newbe, i dont know what exactly CDONTS is and why and where and how it is used, if u could please give a simple example.

thank u
bye
 
CDONTS is Collaboration Data Objects for NT Server, and is used for messaging (specifically sending and receiving messages) and must run on an NT Server. It a common email component used in ASP.

To use it, you must first have it installed on your server. As an example, you could use it in the following way to send an email from an ASP:

<%@ language=&quot;vbscript&quot;%>

<% Option Explicit

Dim objCDOMail

'Initialise CDONTS object
set objCDOMail = Server.CreateObject(&quot;CDONTS.NewMail&quot;)

objCDOMail.From = &quot;from address&quot;
objCDOMail.To = &quot;to address&quot;
objCDOMail.Subject = &quot;subject&quot;
objCDOMail.Body = &quot;body text&quot;

'Send mail
objCDOMail.Send

'Remove object assignment
set objCDOMail = Nothing
%>

Hope that clears it up for you. You could also check out the Microsoft support website ( as they'll have documentation on it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top