用ASP发 WAP MAIL(=)
2000-12-12 10:15:45 来源:WEB开发网核心提示:mail.asp<%Response.Buffer = TrueResponse.ContentType = "text/vnd.wap.wml"Response.Write "<?xml version=""1.0%><%Set Mail =
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>
<%
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>
- ››asp.net页面弄成伪静态页面
- ››Asp.net 中将汉字转换成拼音的方法
- ››ASP.NET及JS中的cookie基本用法
- ››ASP.NET获取MS SQL Server安装实例
- ››asp.net实现调用百度pai 在线翻译英文转中文
- ››ASP.NET页面选项进行提示判断
- ››Asp.net定时执行程序
- ››ASP.NET中利用DataList实现图片无缝滚动
- ››ASP.NET验证控件RequiredFieldValidator
- ››ASP.NET中使用System.Net.Mail发邮件
- ››ASP.NET中获取用户控件中控件的ID
- ››ASP.NET中FileBytes写成文件并存档
更多精彩
赞助商链接