Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   CDO + CDONTS email routine? (http://www.velocityreviews.com/forums/t799286-cdo-cdonts-email-routine.html)

Noozer 07-30-2005 03:40 AM

CDO + CDONTS email routine?
 
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



Egbert Nierop \(MVP for IIS\) 08-02-2005 07:51 AM

Re: CDO + CDONTS email routine?
 
"Noozer" <dont.spam@me.here> 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



All times are GMT. The time now is 08:03 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57