当前位置: 首页 > 图文教程 > 网络编程 > ASP > 在ASP中用EasyMailObject组件处理Exchange邮件源代码(6)

ASP
在ASP中使用SQL语句之10:视图
在ASP中使用SQL语句之11:记录统计
VBS、ASP代码语法加亮显示的类(2)
asp作品保护方案
使用NextRecordset通过一个Connection输出多个select查询
超长字符的智能分页-支持HTML
远程获取内容,并将内容存在本地电脑上,包括任何文件
把文件存进access数据库然后取出来供人下载的代码
一个分页存储过程
在asp文件中访问flash详细信息
关于生成目录树结构的类
用自定义函数获取汉字的首字母
asp在SQL SER2k中新建帐号和给帐号权限的实现
不用 EOF 以加快记录循环
js的单元格颜色间隔
根据选择的Checkbox动态在表格中列出选择的值
URL欺骗
汉字转化为拼音
一个不需要第三方组件,可实现华简单图形的类
组合查询之核心:拼接字符串

在ASP中用EasyMailObject组件处理Exchange邮件源代码(6)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 17 ::
收藏到网摘: n/a

发送邮件的界面(sendmail1.asp)
<%@ LANGUAGE="VBSCRIPT" %>
<%
'*************************************

'这个文件是发送邮件或回复邮件的界面
'作者:awayeah
'邮箱:[email protected]

'*************************************


'取得回信地址
replyaddr=Request.QueryString("addr")
'取得要回邮件的主题
replysubj=replace(Request.QueryString("subject"),"_",space(1))
%>
<script language="vbscript">
sub CmdSubmit_onClick()
if trim(frmsendmail.receive1.value)="" then
alert ("尚未输入收件人地址,请输入!")
frmsendmail.receive1.focus
else
frmsendmail.submit
end if
end sub
</script>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>发邮件</title>
</head>
<body bgcolor="#008080" text="#00FFFF">
<div span=1 align=center>
<form method="POST" action="p_sendmail.asp" name="frmsendmail">
<table border="1" width="455" cellspacing="1" bgcolor="#800080">
<tr>
<td width="92">
<p align="right"><b>发 件 人</b></p>
</td>
<td width="347"><input type="text" name="from" size="40"></td>
</tr>
<tr>
<td width="92"><b>发件人邮箱</b></td>
<td width="347"><input type="text" name="fromaddr" size="40"></td>
</tr>
</table>
<table border="1" width="455" height="56" bgcolor="#000080">
<tr>
<td width="52" height="23">
<p align="center"><b>收件人</b></p>
</td>
<td width="387" height="23">
<p align="left"><input type="text" name="receive1" value="<%=replyaddr%>" size="40"></p>
</td>
</tr>
<tr>
<td width="52" height="23">
<p align="center"><b>主 题</b></p>
</td>
<td width="387" height="23">
<p align="left"><input type="text" name="subject" value="<%=replysubj%>" size="40"></p>
</td>
</tr>
<tr>
<td width="445" colspan="2" height="1">
<table border="0" width="100%" height="184" cellspacing="0" cellpadding="0">
<tr>
<td width="8%" height="178">
<p align="center"><b>内</b>
<p align="center"> 
<p align="center"><b>容</b>
<p> </td>
<td width="92%" height="178"><textarea rows="10" name="bodytext" value="<%=bodytext%>" cols="55"></textarea></td>
</tr>
</table>
</td>
<tr> <td width="52">
<p align="center"><b>附 件</b></p>
</td> <td width="387"><input type="file" name="att" size="20"></td></tr>
</table>
<p align="center"><input type="button" value="发送" name="cmdSubmit"> <input type="reset" value="全部重写" name="B2"></p>
</form>
</div>
</body>

</html>