用ASP发 WAP MAIL(=)
发布时间:2006-10-14 2:41:15   收集提供:gaoqian
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>   
 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50