Solved

easy question

Posted on 2001-07-24
12
231 Views
Last Modified: 2012-05-04

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/jai/addmember.asp, line 93

Invalid class string

Line 93 is:
SET myMail = Server.CreateObject("CDONTS.Newmail")







My code is:

<%

Response.Cookies("JAI").Expires = "Jan 1, 2005"
Response.Buffer = True%>

<html><title>iBuddyList.com - Member Sign-Up</title></head><body>

<table border="0" width="100%">
  <tr>
    <td width="100%"><img border="0" src="defaul1.gif"></td>
  </tr>
</table>
<table border="0" width="100%" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#4B6194" cellspacing="1">
  <tr>
    <td width="100%" bordercolor="#336699" bgcolor="#336699">
      <p align="center"><b><font face="Verdana" size="1" color="#FFFFFF">Sign up
      Now!&nbsp; | Members Login | Services | Help</font></b></td>
  </tr>
</table>
<table border="0" width="100%" height="1" cellspacing="1" cellpadding="0">
  <tr>
    <td width="100%" height="1" bgcolor="#FFFFFF" valign="baseline" colspan="2">
      <p align="center"><font face="Tahoma" size="1"><b>Welcome</b> to
      iBuddyList.com&nbsp; <b>Time:</b> 9:41pm&nbsp; <b>Date:</b> 9/16/00</font></td>
  </tr>
  <tr>
    <td width="25%" height="1" bgcolor="#15266C" valign="baseline">
      <p align="center"><b><font face="Verdana" color="#FFFFFF" size="1">What is
      iBuddyList.com?</font></b></td>
    <td width="75%" height="1" valign="top"></td>
  </tr>
  <tr>
    <td width="25%" bgcolor="#336699" height="1">
      <p align="center"><font size="1" color="#FFFFFF" face="Tahoma">iBuddyList.com
      is a great place to monitor your buddies online status without downloading
      any software. See if your buddy is online and instant message them, and
      best of all, its free!</font><p align="center">&nbsp;<p align="center">&nbsp;</td>
    <td width="75%" height="1" bgcolor="#FFFFFF" valign="top">
       <%AddMember%>
  </tr>
</table>





</body>

</html>





      
      <!-- #INCLUDE FILE="adovbs.inc" -->
<% Sub AddMember()
Dim sUserName, sPassWord, sSecondPass, RS
Dim I ' Standard looping var
sEmail = Request.Form ("txtemail")
sUserFull = Request.Form ("txtfull")
sUserName = Request.form("txtcompany")
sPassWord = Request.Form("txtphone")
sFax = Request.form("txtfax")
sAddress = Request.form("txtaddr1") & vbCrLF & Request.form("txtAddr2")
sCity = Request.form("txtcity")
sState = Request.form("txtState")
sZip = Request.form("txtZip")

If instr(1,sEmail,"@",1) = 0 then
response.write "<font face =tahoma size=1>Invalid Email Address.</font><br>"
sEmail = ""
end if
If len(sEmail) > 4 then

Response.Cookies("JAI")("MemberName") =  sUserFull
Response.Cookies("JAI")("MemberCompany") = sUserName
Response.Cookies("JAI")("MemberEmail") = sEmail
Response.Cookies("JAI")("MemberPhone") = sPassword
Response.Cookies("JAI")("MemberAddress") = sAddress
Response.Cookies("JAI")("MemberCity") = sCity
Response.Cookies("JAI")("MemberState") = sState
Response.Cookies("JAI")("MemberZip") = sZip
Response.Cookies("JAI")("MemberFax") = sFax

Response.Write "Thanks for registering"


      '################MAIL THE PERSON!!!!!!!!!!!
        DIM myMail
      Dim mBody
      SET myMail = Server.CreateObject("CDONTS.Newmail")
      myMail.From = "kevin@johnsonadvertising.com"
      myMail.To = sEmail
      myMail.Subject = "Thank You for subscribing to Johnson Advertising's Mailing List."
      mBody = mBody & "<font face=verdana size=1><b>www.johnsonadvertising.com - Member List ;)</b>" & vbCrLf & vbCrLf & vbCrLf
      mBody = mBody & "Dear " & sUserFull & ":" & vbCrLf & vbCrLf
      mBody = mBody & "  Click <a href = http://www.johnsonadvertising.com/subscribe.asp> Here</a> to varify your subscription to Johnson Advertising.  "
      mBody = mBody & "Upon varifying a free mug will be mailed to you!" & vbcrlf & vbcrlf
      mBody = mBody & vbCrLf & "Contact us at info@johnsonadvertising.com if you have any questions." & vbCrLf & vbCrLf
      mBody = mBody & "Sincerly,"
      mBody = mBody & vbCrLf & vbCrLf
      mBody = mBody & "Kevin Johnson" & vbcrlf
      mBody = mBody & "www.johnsonadvertising.com.com </font>"
      myMail.Body = mBody
      myMail.Send
      SET myMail = Nothing
Elseo
response.write "<font face=verdana size=1>Please go back and fill out all the information correctly. Thank you :-]"
end if
End SUb
%>
0
Comment
Question by:TRD_Supra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +3
12 Comments
 
LVL 7

Expert Comment

by:John844
ID: 6313816
if you are trying to run this on PWS then it would be because cdonts is not supportes on PWS.  If it is happening on IIS then make sure that SMTP services are installed properly.  You can take a quick look in c:/winnt/system32 for cdonts.dll.  if it is not there then reinstall SMTP services.
0
 
LVL 8

Expert Comment

by:drittich
ID: 6313820
That means CDONTS was not installed when IIS was installed on the server.  
0
 
LVL 18

Accepted Solution

by:
mgfranz earned 25 total points
ID: 6313860
If you are not tryinng to run CDONTS on a PWS machine, and you installed the SMTP service, you will either need to re-install the SMTP service, or try to register the .dll
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:TRD_Supra
ID: 6313866
its uploaded to my domain and its doing it..
0
 

Author Comment

by:TRD_Supra
ID: 6313870
it wasnt working in pws either...
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6313872
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6313887
SMTP will not work in PWS. Period.

If it runs from the domain then SMTP is properly configured on the domain server but not your dev server.
0
 

Author Comment

by:TRD_Supra
ID: 6313916
OK, i didnt expect it to work in PWS, but I did expect it to work on the domain. (burlee is the host) i figured they have the smtp service)...


but its not working on the domain
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6314123
Is burlee set-up for SMTP on your domain?  If you are not using an IIS hosting plan then your script won't work.  I suggest you call their support line.
0
 
LVL 7

Expert Comment

by:cstsang
ID: 6315921
are u started the smtp service in control-> service?
Or
have u install the SMTP service on your server?
0
 

Expert Comment

by:RedCCameleon
ID: 6343735
TRD_Supra,
if your question has been resolved, please accept any of the above comments as the answer. If you think this question has not been answered (yet), then please elaborate together with the experts on how to solve your problem, or make you understand why there is no solution.

I will check this question again in a few days, if no comment has been added, I will split the points between mgfranz and John844.

RedCCameleon,
COmmunity Support Moderator @ Experts Exchange
0
 
LVL 7

Expert Comment

by:John844
ID: 6385885
still no comment...
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question