To read the article online, visit http://www.4GuysFromRolla.com/webtech/faq/Email/faq2.shtml

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 = "rob@tconsult.com"
     objMail.Subject = "How TO send email with CDONTS"
     objMail.To = "someone@someplace.com"
     objMail.Body = "This is an email message" & vbcrlf&_ 
     "with CDONTS." & vbcrlf&_
     "It is really easy. " 
     objMail.Send
 
 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: http://www.4GuysFromRolla.com/webtech/faq/Email/faq2.shtml


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