How to use CDONTS

Category »  ASP
Posted By Guido on 24 March 2006
Comments   |   Print   |   Mail it
How to use CDONTS

What is CDONTS
CDONTS (Collaborative Data Objects for Windows NT Server) provides objects that you can use to send e-mails from your ASP scripts. The CDONTS library includes the NewMail class which has an easy-to-use set of methods and properties that allows you to send e-mails from your ASP scripts.

Let's get some code in here
Set objEmail = Server.CreateObject("CDONTS.NewMail")
objEmail.send "", "", "Hi!", _
"Hi! I sent this e-mail from an ASP script! --- Me"
Set objEmail = nothing
That's all! We've just sent an e-mail, and it's only three lines of code.

Read the rest of the article at the authors site here

Powered by Active News