View previous topic :: View next topic |
Author |
Message |
tim
Joined: 02 Nov 2004 Posts: 5
|
Posted: Wed Nov 03, 2004 5:30 pm Post subject: ActiveX component can't create object: 'CDONTS.NewMail' |
|
|
Hi,
I'm trying to send an email from ASP page and I get the following error:
ActiveX component can't create object: 'CDONTS.NewMail'
Here is the line that gives the error:
Code: |
Set objMail = CreateObject("CDONTS.NewMail")
|
Any help will be highly appreciated!
Tim |
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
Posted: Wed Nov 03, 2004 11:23 pm Post subject: |
|
|
Hi Tim,
Instead of using:
Set objMail = CreateObject("CDONTS.NewMail")
use the following:
Set objMail = Server.CreateObject("CDONTS.NewMail")
All ActiveX components instances should be created with Server.CreateObject, not with CreateObject only.
Cheers, _________________ Peter
ASP & ASP.NET Articles and Tutorials |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|