CDO + CDONTS email routine?

Discussion in 'ASP General' started by Noozer, Jul 30, 2005.

  1. Noozer

    Noozer Guest

    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
     
    Noozer, Jul 30, 2005
    #1
    1. Advertising

  2. "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
     
    Egbert Nierop \(MVP for IIS\), Aug 2, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lasse Edsvik

    specify user+pwd in CDO/CDONTS

    Lasse Edsvik, Dec 12, 2003, in forum: ASP General
    Replies:
    11
    Views:
    242
    Aaron Bertrand - MVP
    Dec 15, 2003
  2. coenve

    CDO/CDONTS and truncated attachments

    coenve, Jun 3, 2004, in forum: ASP General
    Replies:
    2
    Views:
    136
    HernĂ¡n Castelo
    Jun 3, 2004
  3. Scott McNair

    CDO/CDONTS and Images

    Scott McNair, Dec 23, 2004, in forum: ASP General
    Replies:
    3
    Views:
    134
    Scott McNair
    Jan 3, 2005
  4. DigitalRick
    Replies:
    6
    Views:
    569
    Ray Costanzo [MVP]
    Jul 29, 2005
  5. Replies:
    6
    Views:
    186
Loading...

Share This Page