CDONTS question

  • Thread starter Thread starter Ed Richter
  • Start date Start date
E

Ed Richter

Was told that on Windows 2003 servers, CDONTS has been replaced by CDOSYS. Seems to be similar, but would mean any existing pages would need some updating. Was wondering, doesn't Microsoft make these things backward compatible so that CDONTS would still work on Win 2003?? Does this mean everytime Microsoft comes out with new OS, any pages could become written in language that is no longer included? Or is my current host just being lazy and not installing another component that would allow CDONTS to still work?
 
Hi Ed,

CDONTS is still available on W2k3 it is strongly suggested that if you plan on always hosting your ASP pages on systems that have CDOSYS that you utilize it.
 
I found this when Googling:
"CDONTS still works, you just have to hunt down a file called CDONTS.dll in
the system32 directory of your Win 2000 box, copy it to your 2003 box and
register it...your old code will then work (though CDOSYS is better!) "

--
-----
Tom Pepper Willett
Microsoft MVP - FrontPage
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
http://msdn.microsoft.com/office/understanding/frontpage/
----
Was told that on Windows 2003 servers, CDONTS has been replaced by CDOSYS.
Seems to be similar, but would mean any existing pages would need some
updating. Was wondering, doesn't Microsoft make these things backward
compatible so that CDONTS would still work on Win 2003?? Does this mean
everytime Microsoft comes out with new OS, any pages could become written in
language that is no longer included? Or is my current host just being lazy
and not installing another component that would allow CDONTS to still work?
 
And your web host must install it. It sounds like his host doesn't want to.
In that case you have to switch to CDOSYS. Also, by running CDOSYS the web
host doesn't need to have the SMTP server running in IIS, which can be
another security hole. Here's an example:


'***************************************************************************
*****
' Send Email using CDOSYS through a remote server instead of using CDONTS
' This alleviates the problem with the SMTP Server being down on the web
server

Dim iMsg
Dim iConf
Dim Flds
Dim MyBody

Const cdoSendUsingPort = 2 ' This is port 25

set iMsg = CreateObject("CDO.Message")
set iConf = CreateObject("CDO.Configuration")

Set Flds = iConf.Fields

With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") =
cdoSendUsingPort
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
"mail.MYDOMAIN.com"

..Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"
) = 10
.Update
End With

'MyBody = "This is a test" & vbCrLf & vbCrLf
MyBody = "Sending email using CDOSYS" & vbCrLf & vbCrLf

With iMsg
Set .Configuration = iConf
.To= "(e-mail address removed)"
.From = "(e-mail address removed)"
.Subject = "Test Message"
.TextBody = MyBody
.Send
End With

Set iMsg = Nothing
Set iConf = Nothing
Set Flds = Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top