Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDONTS - Invalid class string

Status
Not open for further replies.

Stovio

Programmer
Mar 20, 2002
30
SE
Hi,
Im trying to send a mail from my webpage using CDONTS but i keep getting the errormessage "Invalid class string" (0x800401F3). I have the SMTP service installed and running on my IIS server on XP.
This is what causes the problem:

set objMail = server.createobject("CDONTS.NewMail")

What could be the problem?

/S
 
I've known of people downloading CDONTS for XP and it not having the cdonts.dll in it for some reason :S

See if you have this :

C:\windows\SYSTEM32\cdonts.dll

If not, here's a link to donwload it :


then run this line :

regsvr32 C:\windows\SYSTEM32\cdonts.dll

Hope this helps.

This post is best viewed at 1024 x 768
 
Gatchaman,

I was experiencing the same problem and followed your suggestion. I didn't have the cdonts.dll file but the cdosys.dll was there. They both have been registered on my XP machine and I am still getting the error stovio is getting.
Is there anything else I/we can do?
I assume stovio's problem has cleared being that there is no response.

Thanks,
JordanR
 
My problem was in fact solved by adding and registering the cdonts.dll file. I got another reply from another forum though wich i tried but didn't get to work. They told me to not use cdonts but rather cdo. It is recommended to do so by microsoft wich is why the cdonts.dll is not included in the xp smtp service installation.
I found it more difficult however to find out how to use the cdo syntax (all tutorials and alike was written for cdonts users) than to add the cdonts.dll but if you have problems getting cdonts to work, maybe you should give it some time to find out more about the cdo way of doing it (what the exact difference is i don't know).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top