0
從inquiry.html與方法= 「郵報」
Inquiry.asp頁面代碼
如何解決在經典.asp頁面發送電子郵件中的錯誤?
<%
message=""
message=message & "Name : " & Request.Form("txtName") & vbcrlf
message=message & "Designation : " & Request.Form("txtDesignation") & vbcrlf
message=message & "Organization : " & Request.Form("txtOrganization") & vbcrlf
message=message & "Address : " & Request.Form("txtAddress") & vbcrlf
message=message & "City : " & Request.Form("txtCity") & vbcrlf
message=message & "State : " & Request.Form("txtState") & vbcrlf
message=message & "Country : " & Request.Form("cmbCountry") & vbcrlf
message=message & "Phone : " & Request.Form("txtPhone") & vbcrlf
message=message & "Email : " & Request.Form("txtEmail") & vbcrlf
message=message & "Fax : " & Request.Form("txtFax") & vbcrlf
message=message & "Category : " & Request.Form("cmbCategory") & vbcrlf
message=message & "Query : " & Request.Form("txtQuery") & vbcrlf
message=message & "Product of Interest : " & Request.Form("txtgpo") & vbcrlf
message=message & "Product of Interest : " & Request.Form("txtgta") & vbcrlf
message=message & "Product of Interest : " & Request.Form("txtgpu") & vbcrlf
message=message & "Product of Interest : " & Request.Form("txtsw") & vbcrlf
message=message '& "**********************************************************"
set objmail=server.createobject("CDONTS.NewMail")
objmail.bodyformat = 0
objmail.to = "[email protected]"
objmail.To = "[email protected]"
'objmail.From = Request.Form("txtemail")
objmail.From = "[email protected]"
objmail.Subject="Enquiry"
objmail.BodyFormat = 1
objmail.Body=message
objmail.Send
set objmail=nothing
%>
我得到錯誤Inquiry.asp頁呼叫: '80070003' /sendmail.asp,行no:xx