sendmail.asp error
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14710
Printed Date: 30 March 2026 at 6:37am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: sendmail.asp error
Posted By: nnate
Subject: sendmail.asp error
Date Posted: 15 April 2005 at 3:28pm
Hey everyone, im new to asp world, and trying to set up this sendmail form. I just cant seem to get it. Here is what the error looks like:
Microsoft VBScript compilation error '800a03ee'
Expected ')'
/sendmail.asp, line 54
szTo=request("To" <input type=hidden name=To Value="nate@kaizensys.com">)
-------------------------^
and here is what the script looks like:
szTo=request("To" <input type=hidden name=To Value="nate@kaizensys.com">)
szFrom=request("From" <input type=hidden name=from value="">)
szCC=request("CC")
szBCC=request("BCC")
szSubject=request("Subject" <input type=hidden name=Subject value="SRD Form Submit">)
szBody="Name: " & request("Name") & vbcrlf & _
"Phone: " & request("Phone") & vbcrlf & _
"Comment: " & vbcrlf & "-------------------------" & vbcrlf & request("comment") & vbcrlf & _
"-------------------------" & vbcrlf & vbcrlf & _
"Any other questions or comments?: " & vbcrlf & "-------------------------" & request ("question") & vbcrlf & _
"-------------------------" & vbcrlf & vbcrlf &
SendMail(szTo, szFrom, szCC, szBCC, szSubject, szBody, 3, 1)
Response.redirect("Thankyou.html")
--------------------------------------------------------
Can anyone help me out? Or send me in the right direction? or fix the problem? thanks alot! nate.
|
Replies:
Posted By: dj air
Date Posted: 16 April 2005 at 5:08am
hi,
the sections above in the code that have
<input type=hidden name=To Value="nate@kaizensys.com">
are wrong why did you putt them there
to reuquest a form you use request.form("field name")
|
|