Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

easy question


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
TRD_Supra
Asked:
TRD_Supra
  • 4
  • 3
  • 2
  • +3
1 Solution
 
John844Commented:
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
 
drittichCommented:
That means CDONTS was not installed when IIS was installed on the server.  
0
 
mgfranzCommented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
TRD_SupraAuthor Commented:
its uploaded to my domain and its doing it..
0
 
TRD_SupraAuthor Commented:
it wasnt working in pws either...
0
 
mgfranzCommented:
0
 
mgfranzCommented:
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
 
TRD_SupraAuthor Commented:
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
 
mgfranzCommented:
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
 
cstsangCommented:
are u started the smtp service in control-> service?
Or
have u install the SMTP service on your server?
0
 
RedCCameleonCommented:
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
 
John844Commented:
still no comment...
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now