<!--#include file=CONN.ASP-->
<!--#include file=config.asp-->
<!--#include file=mail.asp-->
<link rel="stylesheet" type="text/css" href="1.CSS">
<%
dim rs,sql,id,email,s1,mailbiaoti,emailto
if request.cookies("fox")("username")="" or request.cookies("fox")("domain")="" or request.cookies("fox")("id")="" then 
response.write "<br>"
response.write "<li>你还没有登陆！"
cl
response.end
end if
email=trim(request("maildizhi"))
emailto=trim(request("emailto"))
mailbiaoti=trim(request("mailbiaoti"))
s1=trim(request("s1"))
if email="" or mailbiaoti="" or s1="" then
response.write "<li>没有填写完整！"
response.end
end if
call mail()
response.write "<li>发送邮件成功！"
cl
closedb
%>
<%
sub mail()
dim mailbody,Jmail
mailbody=""&s1&" <br>请不要直接回复邮件<br>你要回复的邮件地址是："&email&"<br>此信息来自<a href="&web&">"&web&"</a>"
Set Jmail=server.createobject("Jmail.Message")
Jmail.Charset ="gb2312"
JMail.ContentType = "text/html"
Jmail.Silent =true
Jmail.Priority = 3
Jmail.MailServerUserName = mailname
Jmail.MailServerPassword = mailpass
Jmail.From = mailform
Jmail.FromName =""&title&""
Jmail.Subject =""&mailbiaoti&""
Jmail.AddRecipient ""&emailto&""
Jmail.Body = mailbody
Jmail.Send(mailsmtp)
Set Jmail=nothing
end sub
%>
<%sub cl()%>
<body onLoad="setTimeout(window.close, 2000)">
<%end sub%></body></html>