CDO + CDONTS email routine?

N

Noozer

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?

Thx
 
E

Egbert Nierop \(MVP for IIS\)

Noozer said:
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
 

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

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,075
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top