HTML5先行者高级交流群

欢迎加入学习讨论
专注前端,专注网页设计制作及网站开发项目 - (低价承接网站开发项目) QQ:370158739加入收藏RSS
用ASP发 WAP MAIL(=)_ASP教程_编程技术
2013-12-23 09:43:23
[小 大]
已经帮助:人解决问题
mail.asp
<%
Response.Buffer = True
Response.ContentType = "text/vnd.wap.wml"
Response.Write "<?xml version=""1.0
%>
<%
Set Mail = Server.CreateObject("Persits.MailSender")
'---------------------------------------------------------
' 你可以修改ISP的邮件服务器 '
Mail.Host = "pun.chaozhou.gd.cn" '
'---------------------------------------------------------
Mail.From = Request.Form("From")
Mail.FromName = Request.Form("From")
Mail.AddAddress Request.Form("To"), Request.Form("To")
Mail.Subject = Request.Form ("Subject")
Mail.Body = Request.Form("Body") + vbCrLf + vbCrLf + _
"_________________________________________________" + vbCrLf + _
" Message sent via Manas' WAPMail " + vbCrLf + _
" http://www.e8899.com/"
On Error Resume Next
Mail.Send
Dim Report
If Err <> 0 Then
Report = "Error: " & Err.Description
Else
Report = "Message sent to " & Request.Form("To")
End If
%>
<wml>
<card title="e8899.com's WAP Mail">
<p>
<%= Report %>
<br/>
<br/>
<a href="default.asp#Send">发另一封</a>
</p>
<p>
<small><a href="http://www.e8899.com">e8899.com</a></small>
</p>
</card>
</wml>
mmzHTML5中文学习网 - HTML5先行者学习网mmzHTML5中文学习网 - HTML5先行者学习网
(责任编辑:)