To read the article online, visit

A Simple CDONTS Example
By Rob Taylor

Here is a simple example of sending an email using CDONTS.

  Dim objMail
  Set objMail = Server.CreateObject("CDONTS.NewMail")
     objMail.From = ""
     objMail.Subject = "How TO send email with CDONTS"
     objMail.To = ""
     objMail.Body = "This is an email message" & vbcrlf&_ 
     "with CDONTS." & vbcrlf&_
     "It is really easy. " 
 Response.write("Mail was Sent")
 'You must always do this with CDONTS.
  set objMail = nothing

Article Information
Article Title: A Simple CDONTS Example
Article Author: Scott Mitchell
Article URL:

Copyright 2018 QuinStreet Inc. All Rights Reserved.
Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers