by Dennis Pallett
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
|