用 ASP 发 WAP Mail 需要以下两个文件:
default.asp
<%
Response.buffer = true
Antwort.ContentType = "text/vnd.wap.wml"
Response.write "<? Xml Version =" "1.0%>
<wml>
<card id = "intro">
<P Align = "Center">
<big> <strong> 欢迎使用 WAP Mail </strong> </big>
<br/>
<br/>
<a href = "#send"> 正在发送邮件 ... </a>
</p>
<p>
<klein> e8899.com </small>
</p>
</card>
<card id = "send">
<p>
来自: <Eingabe type = "text" name = "aus"/> <br/>
发到: <Eingabe type = "text" name = "to"/> <br/>
主题: <Eingabe type = "text" name = "Betreff"/> <br/>
内容: <Eingabe type = "text" name = "body"/> <br/>
</p>
<P Align = "Center">
<do Type = "Akzeptieren" label = "send">
<go href = "mail.asp" method = "post">
<postfield name = "von" value = "$ from"/>
<postfield name = "to" value = "$ to"/>
<postfield name = "Betreff" value = "$ Betreff"/>
<postfield name = "body" value = "$ body"/>
</go>
</do>
</p>
</card>
</wml>