当前位置:雨林木风下载站 > 技术开发教程 > 详细页面

用ASP发 WAP MAIL(=)

用ASP发 WAP MAIL(=)

更新时间:2021-09-25 文章作者:未知 信息来源:网络 阅读次数:

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>   

温馨提示:喜欢本站的话,请收藏一下本站!

本类教程下载

系统下载排行