用EasyMailObject组件处理Exchange邮件源代码(6)
网络整理 - 07-26
在ASP中用EasyMailObject处理Exchange邮件源代码---发送邮件的界面(sendmail1.asp)<%@ LANGUAGE="VBscript" %>
<%
'*************************************
'这个文件是发送邮件或回复邮件的界面
'作者:awayeah
'邮箱:awayeah@163.net
'*************************************
'取得回信地址
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 content="Microsoft FrontPage 4.0">
<meta content="FrontPage.Editor.Document">
<title>发邮件</title>
</head>
<body bgcolor="#008080" text="#00FFFF">
<div span=1 align=center>
<form method="POST" action="p_sendmail.asp">
<table cellspacing="1" bgcolor="#800080">
<tr>
<td>
<p><b>发 件 人</b></p>
</td>
<td><input type="text" size="40"></td>
</tr>
<tr>
<td><b>发件人邮箱</b></td>
<td><input type="text" size="40"></td>
</tr>
</table>
<table bgcolor="#000080">
<tr>
<td>
<p><b>收件人</b></p>
</td>
<td>
<p><input type="text" value="<%=replyaddr%>" size="40"></p>
</td>
</tr>
<tr>
<td>
<p><b>主 题</b></p>
</td>
<td>
<p><input type="text" value="<%=replysubj%>" size="40"></p>
</td>
</tr>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<p><b>内</b>
<p>
<p><b>容</b>
<p> </td>
<td><textarea rows="10" value="<%=bodytext%>" cols="55"></textarea></td>
</tr>
</table>
</td>
<tr> <td>
<p><b>附 件</b></p>
</td> <td><input type="file" size="20"></td></tr>
</table>
<p><input type="button" value="发送"> <input type="reset" value="全部重写"></p>
</form>
</div>
</body>
</html>