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

ASP
ASP系列讲座(十)ASP 内建对象
ASP系列讲座(十一)ActiveX 组件
ASP系列讲座(十二)向浏览器发送内容
ASP系列讲座(十三)向浏览器传送脚本
ASP系列讲座(十四)包含文件
ASP系列讲座(十五)使用 HTML 表格
ASP系列讲座(十六)访问数据库
ASP系列讲座(十七)调试 ASP 脚本
ASP系列讲座(十八)管理应用程序
ASP系列讲座(十九)管理会话
ASP系列讲座(二十)维护 ASP 应用程序的安全
ASP系列讲座(二十一)创建事务性脚本
ASP系列讲座(二十二)使用国际站点
ASP系列讲座(二十三)编写跨平台应用程序
利 用 ISAPI 实 现 向 数 据 库 中 添 加 记 录 (一)
利 用 ISAPI 实 现 向 数 据 库 中 添 加 记 录 (二)
利 用 ISAPI 实 现 向 数 据 库 中 添 加 记 录 (三)
利 用 ISAPI 实 现 向 数 据 库 中 添 加 记 录 (四)
利 用 ISAPI 实 现 向 数 据 库 中 添 加 记 录 (五)
利 用 ISAPI 实 现 向 数 据 库 中 添 加 记 录 (六)

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


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

  在ASP中用EasyMailObject处理Exchange邮件源代码---发送邮件的界面(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" heigh