The Search Huts Articles Main Portal
 
Category Menu
Visual Basic
Search Engines
Javascript
Windows Tips
Photography
ASP
 RSS Feeds


Search in news :

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 "yourname@siteaddress.com", "receiver@siteaddress.com", "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

Powered by Active News Manager - gazatem.com

HOME | REGISTER | CONTACT

Copyright John Hutchison © 2000-2006

eXTReMe Tracker