Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 25th, 2004, 01:56 AM
Authorized User
 
Join Date: May 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default CDONTS

whether we can create instance of CDONTS in asp like this

set objMail=createObject("CDONTS.NEWMail")
or

set objMail=server.createObject("CDONTS.NEWMail")

if we use createObject instead of server.createObject in asp wat would happen????



 
Old August 25th, 2004, 06:18 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Interesting - I would go with what we know works:
set myMail = server.createObject("CDONTS.Newmail")

If you try your suggested:
set objMail=createObject("CDONTS.NEWMail")
You will get :
Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object: 'CreateObject'

Summary : We could try and spell 'banana' without the 'b', but why?



Wind is your friend
Matt
 
Old August 26th, 2004, 06:40 AM
Authorized User
 
Join Date: May 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

dear Mat,
Its working without using the server object


 
Old August 26th, 2004, 06:52 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Interesting, I dont believe it's a suggested method. have a look at this post:

http://p2p.wrox.com/archive/beginning_asp/2000-05/9.asp


Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
using CDONTS maunishq ASP.NET 1.0 and 1.1 Basics 1 August 23rd, 2007 09:35 AM
cdonts p2ptolu Classic ASP Databases 1 March 8th, 2005 11:48 AM
CDONTS preeti Wrox Book Feedback 1 August 11th, 2004 09:39 AM
about mailing using CDONTS anurag_j_r Classic ASP XML 1 March 12th, 2004 04:38 AM
CDONTS asims12 Classic ASP Basics 1 November 13th, 2003 10:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.