I am a network tech, not a programmer.
I have a customer running the following code on our Windows 2000 IIS 5.0 server and when I try to directly open the page using IE6, I get the error:
Microsoft VBScript runtime error '800a0046'
Permission denied
/xxxxx_xxxxxxxx/xxxxxxxxx.asp, line 159
I belive it is a permissions error, but I don't know where.
Any Ideas??
<%
strHTML = "<html><head><title>Customer Order</title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>" & _
"</head><body bgcolor='#FFFFFF' text='#000000' marginwidth='0' marginheight='0' topmargin='0' leftmargin='0'>" & _
"<table width='450' border='0' cellspacing='2' cellpadding='2' bgcolor='#FFFFFF'>" & _
"<tr bgcolor='#FF0000'><td colspan='2'><div align='center'><b><font face='Arial, Helvetica, sans-serif' size='3'>Customer Color Selector Order</font></b></div></td>" & _
"</tr><tr bgcolor='#000000'><td width='150'><div align='center'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Sections & Color</font></b></div>" & _
"</td><td><div align='center'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Item Style: " & Request("style") & "</font></b></div>" & _
"</td></tr><tr><td width='175' valign='top'><font face='Arial, Helvetica, sans-serif' size='2'>"
if Request("c1Color") <> "" Then
strHTML = strHTML & "Collar 1: " & Request("c1Color") & "<br>"
end if
if Request("c2Color") <> "" Then
strHTML = strHTML & "Collar 2: " & Request("c2Color") & "<br>"
end if
if Request("c3Color") <> "" Then
strHTML = strHTML & "Collar 3: " & Request("c3Color") & "<br>"
end if
if Request("yColor") <> "" Then
strHTML = strHTML & "Yoke: " & Request("yColor") & "<br>"
end if
if Request("ysColor") <> "" Then
strHTML = strHTML & "Yoke Stripe: " & Request("ysColor") & "<br>"
end if
if Request("slColor") <> "" Then
strHTML = strHTML & "Sleeves: " & Request("slColor") & "<br>"
end if
if Request("cfColor") <> "" Then
strHTML = strHTML & "Cuff: " & Request("cfColor") & "<br>"
end if
if Request("gColor") <> "" Then
strHTML = strHTML & "Graphic: " & Request("gColor") & "<br>"
end if
if Request("hColor") <> "" Then
strHTML = strHTML & "Hem: " & Request("hColor") & "<br>"
end if
if Request("hyColor") <> "" Then
strHTML = strHTML & "Hem & Yoke: " & Request("hyColor") & "<br>"
end if
if Request("sdColor") <> "" Then
strHTML = strHTML & "Sides: " & Request("sdColor") & "<br>"
end if
if Request("s1Color") <> "" Then
strHTML = strHTML & "Stripe 1: " & Request("s1Color") & "<br>"
end if
if Request("s2Color") <> "" Then
strHTML = strHTML & "Stripe 2: " & Request("s2Color") & "<br>"
end if
if Request("s3Color") <> "" Then
strHTML = strHTML & "Stripe 3: " & Request("s3Color") & "<br>"
end if
if Request("bColor") <> "" Then
strHTML = strHTML & "Body: " & Request("bColor")
end if
strHTML = strHTML & "</font></td><td width='275'> " & _
" <div align='center'><font face='Arial, Helvetica, sans-serif' size='2'><img src=' & request("productPic") & "' align='middle'></font></div>" & _
"</td>" & _
"</tr>" & _
"<tr> " & _
"<td colspan='2'> " & _
" <table width='440' border='0' cellspacing='2' cellpadding='2' align='center'>" & _
" <tr bgcolor='#FF0000'> " & _
" <td colspan='2'> " & _
" <div align='center'><font face='Arial, Helvetica, sans-serif' size='3'><b>Customer " & _
" Information:</b></font></div>" & _
" </td>" & _
"</tr>" & _
"<tr> " & _
"<td width='75' bgcolor='#000000'> " & _
" <p><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Name: </font></b></p>" & _
"</td>" & _
" <td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("Name") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
" <td width='75' bgcolor='#000000'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Address: </font></b></td>" & _
" <td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("Address") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
"<td width='75' bgcolor='#000000'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>City: </font></b></td>" & _
" <td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("City") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
"<td width='75' bgcolor='#000000'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>State: </font></b></td>" & _
"<td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("State") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
" <td width='75' bgcolor='#000000'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Zip Code: </font></b></td>" & _
" <td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("Zip") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
"<td width='75' bgcolor='#000000'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Phone: </font></b></td>" & _
" <td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("Phone") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
"<td width='75' bgcolor='#000000'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Email: </font></b></td>" & _
" <td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("Email") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
"<td width='75' bgcolor='#000000'> " & _
"<p><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>PO #: </font></b></p>" & _
"</td>" & _
"<td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("PO") & "</font></td>" & _
"</tr>" & _
"</table>" & _
"</td>" & _
"</tr>" & _
"</table>" & _
"</body>" & _
"</html>"
Dim objEmail
set objEmail = server.CreateObject("CDONTS.NewMail")
with objEmail
' .To = "XXXXXXX@aol.com"
.To = "xxxxx@x1xxxxxx.com"
.From = "xxxxx@x1xxxxxx.com"
.Importance = 1
.Subject = "Customer Web Site Order"
''.Body = '<HTML><BODY>Name: ' & Request('Name') & '<BR> Stripe 2 Color:' & Request('s2Color') & '<br><br></body></html>'
.Body = strHTML
.BodyFormat = 0
.MailFormat = 0
.Send
end with
set objEmail = nothing
%>
I have a customer running the following code on our Windows 2000 IIS 5.0 server and when I try to directly open the page using IE6, I get the error:
Microsoft VBScript runtime error '800a0046'
Permission denied
/xxxxx_xxxxxxxx/xxxxxxxxx.asp, line 159
I belive it is a permissions error, but I don't know where.
Any Ideas??
<%
strHTML = "<html><head><title>Customer Order</title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>" & _
"</head><body bgcolor='#FFFFFF' text='#000000' marginwidth='0' marginheight='0' topmargin='0' leftmargin='0'>" & _
"<table width='450' border='0' cellspacing='2' cellpadding='2' bgcolor='#FFFFFF'>" & _
"<tr bgcolor='#FF0000'><td colspan='2'><div align='center'><b><font face='Arial, Helvetica, sans-serif' size='3'>Customer Color Selector Order</font></b></div></td>" & _
"</tr><tr bgcolor='#000000'><td width='150'><div align='center'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Sections & Color</font></b></div>" & _
"</td><td><div align='center'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Item Style: " & Request("style") & "</font></b></div>" & _
"</td></tr><tr><td width='175' valign='top'><font face='Arial, Helvetica, sans-serif' size='2'>"
if Request("c1Color") <> "" Then
strHTML = strHTML & "Collar 1: " & Request("c1Color") & "<br>"
end if
if Request("c2Color") <> "" Then
strHTML = strHTML & "Collar 2: " & Request("c2Color") & "<br>"
end if
if Request("c3Color") <> "" Then
strHTML = strHTML & "Collar 3: " & Request("c3Color") & "<br>"
end if
if Request("yColor") <> "" Then
strHTML = strHTML & "Yoke: " & Request("yColor") & "<br>"
end if
if Request("ysColor") <> "" Then
strHTML = strHTML & "Yoke Stripe: " & Request("ysColor") & "<br>"
end if
if Request("slColor") <> "" Then
strHTML = strHTML & "Sleeves: " & Request("slColor") & "<br>"
end if
if Request("cfColor") <> "" Then
strHTML = strHTML & "Cuff: " & Request("cfColor") & "<br>"
end if
if Request("gColor") <> "" Then
strHTML = strHTML & "Graphic: " & Request("gColor") & "<br>"
end if
if Request("hColor") <> "" Then
strHTML = strHTML & "Hem: " & Request("hColor") & "<br>"
end if
if Request("hyColor") <> "" Then
strHTML = strHTML & "Hem & Yoke: " & Request("hyColor") & "<br>"
end if
if Request("sdColor") <> "" Then
strHTML = strHTML & "Sides: " & Request("sdColor") & "<br>"
end if
if Request("s1Color") <> "" Then
strHTML = strHTML & "Stripe 1: " & Request("s1Color") & "<br>"
end if
if Request("s2Color") <> "" Then
strHTML = strHTML & "Stripe 2: " & Request("s2Color") & "<br>"
end if
if Request("s3Color") <> "" Then
strHTML = strHTML & "Stripe 3: " & Request("s3Color") & "<br>"
end if
if Request("bColor") <> "" Then
strHTML = strHTML & "Body: " & Request("bColor")
end if
strHTML = strHTML & "</font></td><td width='275'> " & _
" <div align='center'><font face='Arial, Helvetica, sans-serif' size='2'><img src=' & request("productPic") & "' align='middle'></font></div>" & _
"</td>" & _
"</tr>" & _
"<tr> " & _
"<td colspan='2'> " & _
" <table width='440' border='0' cellspacing='2' cellpadding='2' align='center'>" & _
" <tr bgcolor='#FF0000'> " & _
" <td colspan='2'> " & _
" <div align='center'><font face='Arial, Helvetica, sans-serif' size='3'><b>Customer " & _
" Information:</b></font></div>" & _
" </td>" & _
"</tr>" & _
"<tr> " & _
"<td width='75' bgcolor='#000000'> " & _
" <p><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Name: </font></b></p>" & _
"</td>" & _
" <td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("Name") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
" <td width='75' bgcolor='#000000'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Address: </font></b></td>" & _
" <td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("Address") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
"<td width='75' bgcolor='#000000'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>City: </font></b></td>" & _
" <td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("City") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
"<td width='75' bgcolor='#000000'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>State: </font></b></td>" & _
"<td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("State") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
" <td width='75' bgcolor='#000000'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Zip Code: </font></b></td>" & _
" <td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("Zip") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
"<td width='75' bgcolor='#000000'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Phone: </font></b></td>" & _
" <td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("Phone") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
"<td width='75' bgcolor='#000000'><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>Email: </font></b></td>" & _
" <td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("Email") & "</font></td>" & _
"</tr>" & _
"<tr> " & _
"<td width='75' bgcolor='#000000'> " & _
"<p><b><font face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>PO #: </font></b></p>" & _
"</td>" & _
"<td width='365'><font face='Arial, Helvetica, sans-serif' size='2'>" & Request("PO") & "</font></td>" & _
"</tr>" & _
"</table>" & _
"</td>" & _
"</tr>" & _
"</table>" & _
"</body>" & _
"</html>"
Dim objEmail
set objEmail = server.CreateObject("CDONTS.NewMail")
with objEmail
' .To = "XXXXXXX@aol.com"
.To = "xxxxx@x1xxxxxx.com"
.From = "xxxxx@x1xxxxxx.com"
.Importance = 1
.Subject = "Customer Web Site Order"
''.Body = '<HTML><BODY>Name: ' & Request('Name') & '<BR> Stripe 2 Color:' & Request('s2Color') & '<br><br></body></html>'
.Body = strHTML
.BodyFormat = 0
.MailFormat = 0
.Send
end with
set objEmail = nothing
%>