<!--#include file="inc/safe.asp"-->
<!--#include file="inc/config.asp"-->
<%
  Response.Buffer = true
  Response.ExpiresAbsolute=now()-1
  Response.Expires=0
  Response.CacheControl="no-cache"
%>
<%
if Not ChkPost then 
response.redirect ("login/chklogin.asp?login=4")
response.end
end if
%>
<%
myname=Replace_Text(request("myname"))
myemail=Replace_Text(request("myemail"))
content=Replace_Text(request("content"))

topic="老伙计，我是"&myname&",有事找你！" ' 信件主题
mailbody=content ' 信件内容

ToEmail1=Replace_Text(request("ToEmail1"))
ToEmail2=Replace_Text(request("ToEmail2"))
ToEmail3=Replace_Text(request("ToEmail3"))
ToEmail4=Replace_Text(request("ToEmail4"))
ToEmail5=Replace_Text(request("ToEmail5"))
ToEmail6=Replace_Text(request("ToEmail6"))
ToEmail7=Replace_Text(request("ToEmail7"))
ToEmail8=Replace_Text(request("ToEmail8"))

if IsValidEmail(ToEmail1)=true then sendjmail2 ToEmail1,topic,mailbody
if IsValidEmail(ToEmail2)=true then sendjmail2 ToEmail2,topic,mailbody
if IsValidEmail(ToEmail3)=true then sendjmail2 ToEmail3,topic,mailbody
if IsValidEmail(ToEmail4)=true then sendjmail2 ToEmail4,topic,mailbody
if IsValidEmail(ToEmail5)=true then sendjmail2 ToEmail5,topic,mailbody
if IsValidEmail(ToEmail6)=true then sendjmail2 ToEmail6,topic,mailbody
if IsValidEmail(ToEmail7)=true then sendjmail2 ToEmail7,topic,mailbody
if IsValidEmail(ToEmail8)=true then sendjmail2 ToEmail8,topic,mailbody


Function SendJmail2(Email,Topic,MailBody)

	Dim JMail
	on error resume next
	Set JMail = Server.CreateObject("JMail.SMTPMail")
	JMail.LazySend            = true
	JMail.silent            = true
	JMail.Charset            = "gb2312"
	JMail.ContentType      = "text/html"
	JMail.Sender            = ""&myname&"" '发送人
	JMail.ReplyTo            = ""&myemail&"" '回复到
	JMail.SenderName      = "推荐"&webname&""
	JMail.Subject            = Topic
	JMail.SimpleLayout      = true
	JMail.Body            = MailBody
	JMail.Priority            = 3  '邮件的紧急程序，1 为最快，5 为最慢， 3 为默认值
	JMail.AddRecipient Email
	JMail.AddHeader "Originating-IP", GBL_IPAddress
	If JMail.Execute() = false Then
		SendJmail = 0
	Else
		SendJmail = 1
	End If
	JMail.Close
	Set JMail = Nothing

End Function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>推荐给朋友--alibaba.info</title>
<STYLE>TD {
	FONT-SIZE: 12px
}
P {
	FONT-SIZE: 12px
}
LI {
	FONT-SIZE: 12px
}
SELECT {
	FONT-SIZE: 12px
}
INPUT {
	FONT-SIZE: 12px
}
.f12 {
	FONT-SIZE: 12px
}
.l15 {
	LINE-HEIGHT: 150%
}
.l13 {
	LINE-HEIGHT: 130%
}
.f14 {
	FONT-SIZE: 14px
}
.f13 {
	FONT-SIZE: 13px; LINE-HEIGHT: 130%
}
A:hover {
	COLOR: #ff0000
}
.c01 {
	COLOR: #ffffff
}
.c02 {
	COLOR: #014cfc
}
.c03 {
	COLOR: #000063; LINE-HEIGHT: 130%
}
.c04 {
	BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000
}
.c05 {
	COLOR: #000063
}
.c06 {
	COLOR: #737373
}
.c07 {
	COLOR: #6a6aab; LINE-HEIGHT: 140%
}
.c08 {
	FONT-SIZE: 14px; LINE-HEIGHT: 150%
}
A.lk1:link {
	COLOR: #b8b8b8
}
A.lk1:visited {
	COLOR: #b8b8b8
}
A.lk1:active {
	COLOR: #ffffff
}
A.lk1:hover {
	COLOR: #ffffff
}
A.lk2:link {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A.lk2:visited {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A.lk2:active {
	COLOR: #ffffff; TEXT-DECORATION: underline
}
A.lk2:hover {
	COLOR: #ffffff; TEXT-DECORATION: underline
}
A.lk3:link {
	COLOR: #014cfc
}
A.lk3:visited {
	COLOR: #014cfc
}
A.lk3:active {
	COLOR: #ff0000
}
A.lk3:hover {
	COLOR: #ff0000
}
A.lk4:link {
	COLOR: #000063; TEXT-DECORATION: none
}
A.lk4:visited {
	COLOR: #3131a4; TEXT-DECORATION: none
}
A.lk4:active {
	COLOR: #ff0000; TEXT-DECORATION: underline
}
A.lk4:hover {
	COLOR: #ff0000; TEXT-DECORATION: underline
}
A.a01:link {
	FONT-WEIGHT: bold; COLOR: #ffffff; TEXT-DECORATION: none
}
A.a01:visited {
	FONT-WEIGHT: bold; COLOR: #ffffff; TEXT-DECORATION: none
}
A.a09:link {
	COLOR: #0059d7
}
A.a09:visited {
	COLOR: #0059d7
}
A.a09:active {
	COLOR: #CC3300
}
A.a09:hover {
	COLOR: #CC3300
}
.title0 {
	FONT-WEIGHT: bold; FONT-SIZE: 17px; COLOR: #000000; FONT-FAMILY: arial; TEXT-DECORATION: none
}
A.title1 {
	FONT-WEIGHT: bold; FONT-SIZE: 17px; COLOR: #000000; FONT-FAMILY: arial; TEXT-DECORATION: none
}
A.title2:link {
	COLOR: #000000; TEXT-DECORATION: none
}
A.title2:visited {
	COLOR: #000000; TEXT-DECORATION: none
}
A.title2:active {
	COLOR: #ff0000; TEXT-DECORATION: none
}
A.title2:hover {
	COLOR: #ff0000; TEXT-DECORATION: none
}
A.sinatail:link {
	FONT-SIZE: 12px; COLOR: #0000ff; TEXT-DECORATION: underline
}
A.sinatail:visited {
	FONT-SIZE: 12px; COLOR: #0000ff; TEXT-DECORATION: underline
}
A.sinatail:active {
	FONT-SIZE: 12px; COLOR: #ff0000; TEXT-DECORATION: underline
}
A.sinatail:hover {
	FONT-SIZE: 12px; COLOR: #ff0000; TEXT-DECORATION: underline
}
</STYLE>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br><br>
<TABLE cellSpacing=0 cellPadding=0 width=550 border=0 align="center">
  <TBODY> 
  <TR>
          <TD>
            <TABLE cellSpacing=0 cellPadding=0 width=450 border=0>
              
              <TR>
                
            <TD width=20 bgColor=#CC3300><IMG 
                  src="images/arrowhead.gif" width="23" height="22"></TD>
                <TD width=160 bgColor=#CC3300><B><FONT 
                  color=#ffffcc><NOBR>发送成功！ </NOBR></FONT></B></TD>
                <TD width=20><IMG 
                src="images/round.gif"></TD></table></TD></TR></TABLE>	
<TABLE width=550 border=0 align="center" cellPadding=1 cellSpacing=0 bgColor=#000000>
  <tr valign=top>
	<td>
		<table bgColor="#ffffec" border=0 cellPadding=5 cellSpacing=0 width=100%>
		<tr valign=top>
		<td><div align="center"><br>
		      <font size=4 color="ff8019"><b>
  您的信息已经被成功的发送。</b></font><br>
  <br>
  <br>
  <br>
		  </div></td>
		</tr>
		<tr valign=top>
		<td align=right><font class=f2><b>
		<a href="javascript:history.back()">继续发送</a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:window.close();">关闭窗口</a>&nbsp;&nbsp;</b></font><br></td></tr>
		</table>
	</td>
	</tr>
	</table>
