我網頁中的表單部分是:
<div class="contact-form"><---------表單開始--------->
<form action="sput.asp">
<div class="row">
<div class="col-lg-6 col-md-6 col-12">
<input type="text" placeholder="姓名">
</div>
<div class="col-lg-6 col-md-6 col-12">
<input type="email" placeholder="E-mail">
</div>
<div class="col-lg-6 col-md-6 col-12">
<input type="tel" placeholder="聯系方式">
</div>
<div class="col-lg-6 col-md-6 col-12">
<input type="text" placeholder="主題">
</div>
<div class="col-lg-12">
<textarea name="message" id="message" cols="30" rows="10" placeholder="這里是你的留言"></textarea>
</div>
<div class="col-lg-6 col-md-6 col-12">
<button class="main-btn">發送</button>
</div>
</div>
</form>
</div><----------表單結束--------->
我的asp代碼是:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Set msg=Server.CreateObject("Jmail.Message")
msg.silent=true
msg.Logging = true
msg.Charset = "gb2312"
msg.MailServerUserName = "[email protected]"''輸入smtp服務器驗證登陸名
msg.MailServerPassword = "********"''輸入smtp服務器驗證密碼
msg.From = "[email protected]"''發件人
msg.FromName = "站長"''發件人姓名
msg.AddRecipient "[email protected]"''收件人
msg.Subject = "測驗主題"''主題
msg.Body = "本郵件由ASP自動發送!"''正文
msg.Priority = 3
msg.Send ("smtp.163.com")''郵件服務器
set msg = nothing
Response.Write("Success!")
%>
點了發送后他就在瀏覽器上顯示我asp的代碼,什么都沒做。。。。。
求解決!實在不行我求師,給1000教會我怎么隨意呼叫HTML中的表單發送郵箱。
uj5u.com熱心網友回復:
服務器不支持asp?uj5u.com熱心網友回復:
支持uj5u.com熱心網友回復:
已經安裝了jmailuj5u.com熱心網友回復:
是用iss嗎?剛剛用phpstudy,現在用iss又提示“500 - 內部服務器錯誤。”轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/112000.html
標籤:ASP
