📄 xinxi_mail.asp
字号:
<!--#include file=conn.asp-->
<%
dim rs,sql,id,username,emailto,useremail
id=trim(request("id"))
if not isnumeric(id) or id="" then
response.write "<li>参数错误!"
cl
response.end
end if
if request.cookies("ijob")("username")="" or request.cookies("ijob")("domain")="" or request.cookies("ijob")("id")="" then
response.write "<br>"
response.write "<li>你还没有登陆!"
cl
response.end
end if
username=trim(request.cookies("ijob")("username"))
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select email from [user] where username='"&username&"'"
rs.open sql,conn,1,1
if rs.eof then
response.write "<li>参数错误!"
cl
response.end
end if
useremail=rs("email")
rs.close
sql="select email from [xinxi] where id="&cstr(id)
rs.open sql,conn,1,1
if rs.eof then
response.write "<li>参数错误!"
cl
response.end
end if
emailto=rs("email")
rs.close
set rs=nothing
closedb
%>
<meta http-equiv="Content-Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="1.CSS">
<title>发送邮件</title>
<body topmargin="3" leftmargin="0">
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#CCCCCC" width="352" height="64">
<form action="xinxi_mailchk.asp?id=<%=id%>" method="POST">
<tr>
<td width="80" height="25">
<p align="center"><font color="#FF0000">邮件标题:</font></td>
<td width="273" height="25">
<input type="text" name="mailbiaoti" size="39" maxlength="50"></td>
</tr>
<tr>
<td width="80" height="25">
<p align="center"><font color="#FF0000">你的邮箱:</font></td>
<td width="273" height="25">
<input type="text" name="maildizhi" size="15" value="<%=useremail%>" maxlength="40">
方便收信人用EMAIL联系你!<input type="hidden" name="emailto" size="15" value="<%=emailto%>" maxlength="40"></td>
</tr>
<tr>
<td width="80" height="25">
<p align="center"><font color="#FF0000">邮件内容:<br>
(纯文字)</font></td>
<td width="273" height="25">
<textarea rows="16" name="S1" cols="37"></textarea></td>
</tr>
<tr>
<td width="353" height="35" colspan="2">
<p align="center">
<input type="submit" value="提交" name="B1" style="color: #FFFFFF; border: 1px solid #000000; background-color: #666666"></td>
</tr>
</form>
</table>
</center>
</div>
<%sub cl()%>
<body onLoad="setTimeout(window.close, 2000)">
<%end sub%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -