I am about to lose my mind and need some help. I have tried several different contact forms in both php and aspx and I cant get anything to work. I am not sure if it is me or GoDaddy (most likely me). Now I have found out that there are suppose to be either a php or aspx form that GoDaddy wants you to use but I think I deleted them a long time. Anyway I am using the Windows/Shared Hosting account. Here is the code for my form and the aspx I am using.
contact.aspx
<body>
<% [at] Language=”VBSCRIPT” %>
<% If Request.ServerVariables(“REQUEST_METHOD”) = “POST” Then
‘*
‘
‘*
Dim strBOD
strBOD = “Name: ” & Request.Form(“name”) & vbCrLf _
& “Email: ” & Request.Form(“email”) & vbCrLf & vbCrLf
& Request.Form(“comments”)
Dim objCFG
Set objCFG = Server.CreateObject(“CDO.Configuration”)
objCFG.Fields.Item(aCDO & “sendusing”) = 2
objCFG.Fields.Item(aCDO & “smtpserver”) =
“exodusarts.secureserver.net”
objCFG.Fields.Item(aCDO & “smtpserverport”) = 25
objCFG.Fields.Update
Dim objCDO
Set objCDO = Server.CreateObject(“CDO.Message”)
objCDO.Configuration = objCFG
objCDO.From = Request.Form(“email”)
objCDO.To = “
objCDO.Subject = “Contact Form”
objCDO.TextBody = strBOD
objCDO.Send
Set objCDO = Nothing
Set objCFG = Nothing
End If
%>
</body>
</html>
contact.htm
<body>
<form name=”email” action=”contact.asp” method=”post”>
<p>Name:<br>
<input type=”text” name=”name” size=”25″></p>
<p>Email address:<br>
<input type=”text” name=”name” size=”25″></p>
<p>Comments<br>
<textarea rows=”10″ cols=”60″ name=”comments”></textarea></p>
<input type=”submit” value=”Send” /></p>
</form>
</body>
Here is the error I get:
Microsoft VBScript compilation error ‘800a03ea’
Syntax error
/contact.asp, line 24
objCFG.Fields.Item(aCDO & “smtpserver”) =
—————————————–^