Test CDONTS functionality
To test Collaboration Data Objects for Windows NT Server (CDONTS) functionality, you can use the following code saved into a file with a .asp extension:
<% Dim myMail Set myMail = Server.CreateObject ("CDONTS.NewMail") myMail.From = "email@example.com" myMail.To = "firstname.lastname@example.org" myMail.Subject = "Test email using CDONTS" myMail.Body = "This is a test email message" & vbcrlf & "sent with CDONTS" myMail.Send set myMail=nothing Response.Write("Your e-mail has been sent") %>
Carry on the conversation in the Rackspace Community.
© 2015 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License
See license specifics and DISCLAIMER