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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDNONTS Error...

Status
Not open for further replies.
May 9, 2000
446
GB
Hi, I'm totally new to using CNDONTs anyway I've got XP Pro with SMTP option installed. I'm just trying to send one simple message at the moment to get the hang of it all. I keep getting the rror msg below. I've pasted the page code below that....

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/internalaudit/EmailFile.asp, line 4

My page reads:

<%@LANGUAGE=&quot;VBSCRIPT&quot;%>
<%
Dim objMail
Set objMail = Server.CreateObject(&quot;CDONTS.NewMail&quot;)

objMail.From = &quot;Me@me.org&quot;
objMail.Subject = &quot;How TO send email with CDONTS&quot;
objMail.To = &quot;You@you.com&quot;
objMail.Body = &quot;This is an email message&quot; & vbcrlf&_
&quot;with CDONTS.&quot; & vbcrlf&_
&quot;It is really easy. &quot;
objMail.Send

Response.write(&quot;Mail was Sent&quot;)

'You must always do this with CDONTS.
set objMail = nothing
%>

Any help'd be cool. Cheers
 
Cdonts doesnt come with XP Pro running IIS 5.1, so this may be your problem.
You can download a copy from here

and then just register it. Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
Ahhhhh! That'd be it then, i thought by installing the SMTP i was installing CDONTS.... cheers! :)
 
GAryC123, cheers for that I've downloaded it, any pointers on how to install it for us??

Cheers
 
Sure

Start/Run

then type in

c:/windows/system32/regsvr32.exe c:/pathyousavedto/cdonts.dll

and enter

If successful you will get a msg saying so Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
Okay so thats seems to work, but now my page works and prints 'Email sent' on the screen but no mail has been sent, do i need to setup the email account the mail is sent from on my server?

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top