CDO经典ASP形式不工作(CDO Classic ASP form not working)

2019-10-19 06:08发布

我有一个为我工作形式,但我做了一些修改,我可以找出为什么它现在的工作。 我希望有人能帮忙。 我已经改变了SMTP到0。 我的代码:

<%  
submitter = request.form("submitter")
dotty = request.form("would you like a confirmation email")
appno = request.form("application number")
cust = request.form("customer name")
broker = request.form("broker name")
company = request.form("company")
introtel = request.form("broker contact number")
sdate = request.form("date of call")
stime = request.form("time of call")
sreason = request.form("reason")


Set cdoConfig = CreateObject("CDO.Configuration")  

With cdoConfig.Fields  
    .Item(cdoSendUsingMethod) = cdoSendUsingPort  
    .Item(cdoSMTPServer) = "00.000.00.000"  
    .Update  
End With 

Set cdoMessage = CreateObject("CDO.Message")  

With cdoMessage 
    Set .Configuration = cdoConfig 
    .From = submitter
    .To = "Me@me.co.uk"
    .Subject = Callback request
    .TextBody = "Advisors Name: " & submitter & vbcrlf & vbcrlf & "Application Number: " & appno & vbcrlf & vbcrlf & "Customer Name: " & cust & vbcrlf & vbcrlf & "Broker Name: " & broker & vbcrlf & vbcrlf & "Company: " & company & vbcrlf & vbcrlf & "Broker Contact Number: " & introtel & vbcrlf & vbcrlf & "Date of Call: " & sdate & vbcrlf & vbcrlf & "Time of Call: " & stime & vbcrlf & vbcrlf & "Reason for Escalation: " & sreason 
    .Send 
End With 

Set cdoMessage = Nothing  
Set cdoConfig = Nothing  

Response.write "<HTML><head><title></title></head><body><body bgcolor=""#161712"" TEXT=""white"" ALINK=""white"" VLINK=""white""><center><br><br><Br><Br><Br><br><br><br><Br><br><Br><br>Your request has been submitted....<br><br><br><a href = ""javascript:window.close();""> Click here to close window </a> </center></body></HTML>"

%>

Answer 1:

“回调请求”:你已经在你的主题错过了引号。



文章来源: CDO Classic ASP form not working