Errors Solutions
error

I get this message when I try to open a web page "Microsoft VBScript runtime error '800a01a8' " What is this?

Q:


A: some .dll's must have got deleted, agree out here:
http://support.microsoft.com/kb/194801

ASP Server Side Programming Help

Q: I made an appositeness for my web site it is supposed to be a contact us email. The page has a form that you fill out with comments and it gets emailed to the website toastmaster. Here is the Code I used:

<
Set fromUser=Request.Form("username")
Set messageContent=Insist on.Form("usercomments")
Set email=CreateObject("CDO.Message")
email.Discipline="Hilaal.org Comment"
email.From="info@hilaal.org"
email.To="raptor753@gmail.com"
email.HTMLBody="From: " fromUser "<br />" messageContent
SmtpMail.SmtpServer="email hilaal.org"
email.Send
Set email=Nothing
>

And this is the Error I keep Getting:

Microsoft VBScript runtime error '800a01a8'
Protest to required: ''
/contactus.asp, line 26

Thank you for any help.


A: You can't "createobject" in ASP. This is VB syntax. You scarcity to "Server.Createobject" in ASP because you want the web server to create the object.


Here's some jus canonicum 'canon law' for you


Set objMailer=Server.CreateObject("CDO.Message")

strSender="you@me.com"
strRecipient="your@email.com"

mailserver = "send.yourserver.com"
objMailer.Subject = strSubject
objMailer.From = strSender
objMailer.To = strRecipient
objMailer.HTMLBody = strMessage
objMailer.Configuration.Fields.Memo("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objMailer.Configuration.Fields.Article("http://schemas.microsoft.com/cdo/configuration/smtpserver") = mailserver
objMailer.Configuration.Fields.Component("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMailer.Configuration.Fields.Update
strResult = objMailer.Send

set objmailer = nothing

looks like yahoo cuts off the issue. Go here
http://fishcounts.com/cdomail.txt

© 2008 Errors Solutions