‘ or
ActiveX component can’t create object: ‘CDONTS.NewMail’
‘ or
The "SendUsing" configuration value is invalid.
Cause
The problem is due to Microsoft’s change in the name and progID when the DLL is used
to send mail through CDO.
Resolution
Use the following Code:
<%
sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(sch & "sendusing") = 2
cdoConfig.Fields.Item(sch & "smtpserver") =
"<enter_mail.server_here>"
cdoConfig.Fields.update
Set cdoMessage = Server.CreateObject("CDO.Message")
Set cdoMessage.Configuration = cdoConfig
cdoMessage.From = "from@me.com"
cdoMessage.To = "to@me.com"
cdoMessage.Subject = "Sample CDONTS NewMail"
cdoMessage.TextBody = "This is a test for CDONTS message"
cdoMessage.Send
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
Content retrieved from: https://support.appliedi.net/kb/a388/using-cdonts-on-windows-2003.aspx.