Advertisements

"Noozer" <> wrote in message
news:KECGe.66866$%K2.40519@pd7tw1no...
> Just curious... Some webapps that I develop could be deployed on older NT
> systems OR Win2K3...
>
> Is there a simple test for CDO/CDONTs that I can use in code so I could
> implement both routines and use the one that's existing on the server?

Sure

On Error Resume Next
Set myTest = CreateObject("CDO.MailMessage")

if err.number > 0 Then
Set myTest = CreateObject("CDONTS.NewMail")
End If
err.clear

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!