- 爱易网页
-
ASP教程
- 用ASP发 WAP MAIL(=)
日期:2011-04-22 浏览次数:20995 次
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>
免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。