Example

<% 

' The following code uses the CreateObject method to 
' instantiate a NewMail object on the server.
Dim objNewMail

Set objNewMail = Server.CreateObject("CDONTS.NewMail")

%>

For more details on the use of the CreateObject method, see its entry in Chapter 9.

To use the CDO constants listed in this chapter, you must declare the CDO type library. The following code demonstrates this:

[Excerpt from GLOBAL.ASA]

<!-- METADATA TYPE="TypeLibrary"
FILE="CDONTS.DLL"
VERSION="1.2"
-->

Examples in this chapter assume you have declared the type library beforehand.

Tip

In this chapter, any CDO constant is followed by the constant's value in parentheses.

Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.