<%@language=vbscript codepage=936 %>
<!--#include file="conn.asp"-->

<!--#include file="admin.asp"-->
<% 
set rs=server.createobject("adodb.recordset") 
sql="select * from maildefault order by id desc" 
rs.open sql,conn,1,1   
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="862" align="center" valign="top"><br>
      <b>发 送 邮 件</b> <br> <form name="sendmail" action="sendmailto.asp" method="post" >
        <table width="560" border="0" align="center" cellpadding="0" cellspacing="2" bgcolor="#ECF5FF">
          <tr> 
            <td height="25" bgcolor="#A4B6D7"> 
              <div align="center"><font color="#000000">发信人地址：</font></div></td>
            <td height="30"> 
              <input type="text" name="frommail" value="<%=rs("frommail")%>">
            </td>
          </tr>
          <tr> 
            <%email=request("email")%>
            <td bgcolor="#A4B6D7"> 
              <div align="center"><font color="#000000">收信人地址：</font></div></td>
            <td> 
              <input name="tomail" type="text" value="<%=email%>"> 
              <br>
              <br> <font color="#000000">（如果为空，从数据库取地址群发！） </font></td>
          </tr>
          <tr> 
            <td bgcolor="#A4B6D7"> 
              <div align="center"><font color="#000000">信件标题：</font></div></td>
            <td> 
              <input type="text" name="mailsubject" size="50">
              <br> <br> <font color="#000000">（如果为空，则显示<font color="#FF0000">“<%=rs("mailsubject")%>”</font>！） </font></td>
          </tr>
          <tr> 
            <td bgcolor="#A4B6D7"> 
              <div align="center"><font color="#000000">信件内容：</font></div></td>
            <td> 
              <textarea name="mailbody" cols="50" rows="8"></textarea>
              <br> <br> </td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#A4B6D7"> 
              <div align="center"></div></td>
            <td height="22"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
              <input type="submit" name="Submit" value="发送"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
              <input type="reset" name="Submit" value="取消"> <input type="hidden" name="action" value="我发">
            </td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->