By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,836 Members | 1,840 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,836 IT Pros & Developers. It's quick & easy.

i was unsuccessful in sending email using asp

P: n/a
i tried to send a email through asp using codes given on the book.
but there is an error saying:

ActiveX component can't create object: 'CDONTS.NewMail'

what's that error for.,,and how can i correct it.
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Are you sure your server has CDONTS installed? ActiveX can't load the
component if it is not installed on the server. I think you can
download CDONTS, so try to google it.

Nov 19 '05 #2

P: n/a
Hi Sagar,

The error message <ActiveX component can't create object: 'CDONTS.NewMail'>
that you are gettign through the code is because, CDONTS is a component
which needs to be created and then used for sending mails.
Now in your case you dont have the CDONTS installed on your server and hence
your code cannot create a object out of it to use..

This article explains which OS you have CDONTS installed and which OS dont
have it and what workaround you need to follow to install CDONTS :-

http://www.powerasp.com/content/hintstips/asp-email.asp
Here is a e.g of using CDONTS :-
http://www.webwizguide.com/asp/tutor...s_tutorial.asp
*****************************
Hope This Helps,

Shaun, M.C.P
http://blogs.wwwcoder.com/shaunakp
*****************************

"sagar" wrote:
i tried to send a email through asp using codes given on the book.
but there is an error saying:

ActiveX component can't create object: 'CDONTS.NewMail'

what's that error for.,,and how can i correct it.

Nov 19 '05 #3

P: n/a
Hi,

It seems that cdonts.dll is not install and/or not register.

You can-

1. Download cdonts.dll, and put it in %windir%\system32\

2. In command prompt, enter
regsvr32 %windir%\systems32\cdonts.dll


System will prompt saying the dll has been registered.

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.