主题:  請各位朋友幫忙看看~~

jackycnsd

职务:普通成员
等级:1
金币:0.0
发贴:70
#12005/1/6 9:31:12
請各位朋友看看,下面是代碼有問題嗎?怎么提交后總顯示:
Microsoft VBScript runtime error '800a0046'

Permission denied

/contact/titlenew.asp, line 20
-----------------------------------------------------------------------------------------------------------
下面是代碼:
<%@ Language=VBScript CODEPAGE=950 %>
<% response.buffer=true %>
<%
    Set objNewMail = Server.CreateObject("CDONTS.NewMail"
    objNewMail.To = "***@***.com"
    objNewMail.From = "***_server@***.com"
    objNewMail.Subject = "Web Page Inquiry!"
    body = "你好!" & vbCrLf
    body = body & "這個郵件是從**網頁寄來。"
    body = body & "你有一個新的咨詢郵件!" & vbCrLf & vbCrLf
    body = body & "查詢者:" & Request("name" & vbCrLf
    body = body & "職銜:" & Request("title" & vbCrLf
    body = body & "公司名稱:" & Request("company" & vbCrLf
    body = body & "地址:" & Request("address" & vbCrLf
    body = body & "電郵地址:" & Request("email" & vbCrLf
    body = body & "電話號碼:" & Request("phone_number" & vbCrLf
    body = body & "傳真號碼:" & Request("fax_number" & vbCrLf
    body = body & "查詢事:" & Request("enquiry" & vbCrLf
    objNewMail.body = body
    objNewMail.Send
    Response.Redirect "main_contact.htm"
%>



缺缺

职务:管理员
等级:8
金币:41.0
发贴:9620

jackycnsd

职务:普通成员
等级:1
金币:0.0
发贴:70
#32005/1/6 10:07:35
謝謝,有沒有具體的方法