|
 |
|
 |
 |
<%
secuser=Replace_Text(request.form("selected_friend_id"))
secuser=replace(replace(replace(secuser,"-1+",""),"0+",""),"1+","")
if Cint(request("Verifycode"))<>Session("Verifycode") then
if request.form("Verifycode")="" and request.form("messageContent")="" then
response.write""
else
response.write""
response.write""
response.write""
response.write"- 亲爱的会员,您的验证码输入错误,请再试一下
"
response.write" "
response.write" "
response.write" | "
end if
else
touser=Replace_Text(request.form("touser"))
set rs=conn.execute("select id,user from corporation where user='"&touser&"' and id<>"&session("id")&"")
if rs.eof or rs.bof then
response.write""
response.end
else
mycid=rs("id")
set rsblak=conn.execute("select id from MemberRelation where user='"&rs("user")&"' and secuser='"&session("user")&"' and relation=-1")
if not (rsblak.eof and rsblak.bof) then
response.write""
response.end
end if
rsblak.close
set rsblak=nothing
end if
title=Replace_Text(request.form("messageTitle"))
content=Replace_Text(request.form("messageContent"))
sendemail=Replace_Text(request.form("sendemail"))
saveSendMessage=Replace_Text(request.form("saveSendMessage"))
sendContact=Replace_Text(request.form("sendContact"))
if saveSendMessage<>"" then
set rs1=server.createobject("adodb.recordset")
sql1="select * from getprice1 where (id is null)"
rs1.open sql1,conn,1,3
rs1.addnew
rs1("title")=title
rs1("content")=content
if sendemail<>"" then rs1("sendemail")=1
if sendContact<>"" then rs1("sendcontact")=1
rs1("mycid")=mycid
rs1("sendcid")=session("id")
rs1("datetime")=now()
rs1.update
end if
set rs=server.createobject("adodb.recordset")
sql="select * from getprice where (id is null)"
rs.open sql,conn,1,3
rs.addnew
rs("title")=title
rs("content")=content
if sendemail<>"" then rs("sendemail")=1
if sendContact<>"" then rs("sendcontact")=1
rs("mycid")=mycid
rs("sendcid")=session("id")
rs("datetime")=now()
if saveSendMessage<>"" then
rs("getprice1id")=rs1("id")
rs1.close
set rs1=noting
end if
rs.update
rs.close
set rs=noting
if sendemail<>"" then
email="shuai@etoneit.com"
topic="你好!"
mailbody="测试!"
sendjmail email,topic,mailbody
end if
'If SendJmail(email,Topic,MailBody) = 1 Then
' Response.Write "
资料成功发送到您的注册邮箱!"
'Else
' Response.Write "
未正确设置邮件发送或您填写的邮件地址有误,资料发送失败!"
'End If
response.write""
end if
%>
|
|