<?
////////////////////////////////////////////////////////////
//             红叶 TextMail I v1001                      //
//                                                        //
//           版权所有：红叶工作室                         //
//           http://leafcn.51.net                         //
//         E-mail: leafcn@yesky.com                       //
//                                                        //
////////////////////////////////////////////////////////////
//start
/***********************************************************
** 以下是参数设置部分
***********************************************************/

$home="http://mstong.51.net";  #你的主页URL
$homename="海阔天空";      #你的主页名称
$homelogo="images/logo.gif";      #你的logo,最好不超过60*150
$default_to="fanspower@yahoo.com.cn"; #默认收件人，可以为空
$default_subject="你好";                 #默认主题，可以为空
$default_message="你好！";               #默认邮件内容，可以为空

##设置结束，以下内容不用修改
/**********************************************************/


/***********************************************************
      public function sendmail() 按指定参数发送邮件
***********************************************************/
function sendmail($to,$subject,$message,$from,$reply)
{
	if(mail($to, $subject, $message, "From: $from\nReply-To: $reply\nX-Mailer: PHP/"))
		return 1;
	else
		return 0;
}
#############################################################



/************************************************************
              显示发送邮件界面
************************************************************/
?>
<?
if($send==1)
{
	if(sendmail($to,$subject,$message,$from,$reply)) {
?>
<html>
<head>
<title>邮件发送成功</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="refresh" content="3; url=index.php">
<style type="text/css">
<!--
a            { color: #324E40;  text-decoration: none }
a:hover      { color: #F83430; text-decoration: line overline }
.fontsize9 {  font-size: 9pt; cursor: hand}
.fontsizeTitle {  font-size: 10pt}
INPUT{BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #cccccc; PADDING-BOTTOM: 1px; BORDER-TOP-COLOR: #cccccc;background-color: #efefef; PADDING-TOP: 1px; HEIGHT: 18px; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #cccccc}
textarea {border-width: 1; border-color: #000000; background-color: #efefef; font-family: 宋体; font-size: 9pt; font-style: bold;}
select {border-width: 1; border-color: #000000; background-color: #efefef; font-family: 宋体; font-size: 9pt; font-style: bold;}
BODY{FONT-FAMILY: 宋体; FONT-SIZE: 9pt;
SCROLLBAR-HIGHLIGHT-COLOR: buttonface;
SCROLLBAR-SHADOW-COLOR: buttonface;
SCROLLBAR-3DLIGHT-COLOR: buttonhighlight;
SCROLLBAR-TRACK-COLOR: #eeeeee;
SCROLLBAR-DARKSHADOW-COLOR: buttonshadow}
-->
</style>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="images/bg.jpg">
<br>
<table width="97%" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#333333">
  <tr>
    <td height="23"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="4" height="100%" bgcolor="#fccdcd" class="fontsize9">
        <tr>
          <td width="83%"> &gt;&gt; 欢迎您~!&lt;&lt; <img src="images/mail.gif" width="13" height="15" align="bottom"> 
            <a href=<? echo $home; ?>> 
		  <? echo $homename; ?></a>在线邮件发送</td>
          <td width="17%"> 
            <div align="center"><a href=<? echo $home; ?>><img src="images/home.gif" width="46" height="16" border="0"></a> 
            </div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="97%" border="0" cellspacing="0" cellpadding="0" align="center" height="60">
  <tr>
    <td width="50%"><img src=<? echo $homelogo; ?> ></td>
    <td width="71%">&nbsp;</td>
  </tr>
</table>
<br>
<table width="97%" border="0" cellspacing="0" cellpadding="1" height="135" align="center" bgcolor="#333333" class="fontsize9">
  <tr> 
    <td height="21" colspan="2">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="117%" class="fontsizeTitle">
        <tr bgcolor="#fccdcd"> 
          <td width="24%" height="23">&nbsp;</td>
          <td width="76%" height="23"><img src="images/email.gif" width="16" height="16" align="absmiddle"><font face="黑体"> 
            <a href=<? echo $home; ?>><? echo $homename; ?></a></font><font color="#485E59" face="黑体">在线电子邮件发送</font></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td rowspan="2" width="30%"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%" bgcolor="#fbe8e8" class="fontsize9">
        <tr> 
          <td height="25"><img src="images/mail.gif" width="13" height="15"> 邮件发送说明</td>
        </tr>
        <tr> 
          <td height="81">
            <blockquote>
              <p>-=&gt;只需填好收件人邮箱邮件主题及右边各项内容,点击发送按钮即可.</p>
              <p><hr>
              黄泉<br>
              <a href="http://7971.yeah.net">TextMail I v1001</a><br>
              <a href="http://7971.yeah.net">&gt;&gt; 简易版 &lt;&lt;</a><br>
            </blockquote>
          </td>
        </tr>
      </table>
    </td>
    <td  rowspan="2" width="66%"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f9f1f1" height="100%" class="fontsize9">
        <tr> 
          <td>
            <blockquote>
              <p> -=&gt;邮件发送成功<br>
                <a href="index.php">正在返回邮件发送主界面...</a><br>
                <a href=<? echo $home; ?>>如果你想返回本站主页，请点击这里 ...</a></p>
            </blockquote>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> </tr>
</table>
</body>
</html>

<?
	}else{
?>
<html>
<head>
<title>邮件发送失败</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
a            { color: #324E40;  text-decoration: none }
a:hover      { color: #F83430; text-decoration: line overline }
.fontsize9 {  font-size: 9pt; cursor: hand}
.fontsizeTitle {  font-size: 10pt}
INPUT{BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #cccccc; PADDING-BOTTOM: 1px; BORDER-TOP-COLOR: #cccccc;background-color: #efefef; PADDING-TOP: 1px; HEIGHT: 18px; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #cccccc}
textarea {border-width: 1; border-color: #000000; background-color: #efefef; font-family: 宋体; font-size: 9pt; font-style: bold;}
select {border-width: 1; border-color: #000000; background-color: #efefef; font-family: 宋体; font-size: 9pt; font-style: bold;}
BODY{FONT-FAMILY: 宋体; FONT-SIZE: 9pt;
SCROLLBAR-HIGHLIGHT-COLOR: buttonface;
SCROLLBAR-SHADOW-COLOR: buttonface;
SCROLLBAR-3DLIGHT-COLOR: buttonhighlight;
SCROLLBAR-TRACK-COLOR: #eeeeee;
SCROLLBAR-DARKSHADOW-COLOR: buttonshadow}
-->
</style>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="images/bg.jpg">
<br>
<table width="97%" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#333333">
  <tr>
    <td height="23"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="4" height="100%" bgcolor="#fccdcd" class="fontsize9">
        <tr>
          <td width="83%"> &gt;&gt; 欢迎您~!&lt;&lt; <img src="images/mail.gif" width="13" height="15" align="bottom"> 
            <a href=<? echo $home; ?>><? echo $homename; ?></a>在线邮件发送</td>
          <td width="17%"> 
            <div align="center"><a href=<? echo $home; ?>><img src="images/home.gif" width="46" height="16" border="0"></a> 
            </div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="97%" border="0" cellspacing="0" cellpadding="0" align="center" height="60">
  <tr>
    <td width="50%"><img src=<? echo $homelogo; ?> </td>
    <td width="71%">&nbsp;</td>
  </tr>
</table>
<br>
<table width="97%" border="0" cellspacing="0" cellpadding="1" height="135" align="center" bgcolor="#333333" class="fontsize9">
  <tr> 
    <td height="21" colspan="2">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="117%" class="fontsizeTitle">
        <tr bgcolor="#fccdcd"> 
          <td width="24%" height="23">&nbsp;</td>
          <td width="76%" height="23"><img src="images/email.gif" width="16" height="16" align="absmiddle"><font face="黑体"> 
            <a href=<? echo $home; ?>><? echo $homename; ?></a></font><font color="#485E59" face="黑体">在线电子邮件发送</font></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td rowspan="2" width="30%"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%" bgcolor="#fbe8e8" class="fontsize9">
        <tr> 
          <td height="25"><img src="images/mail.gif" width="13" height="15"> 邮件发送说明</td>
        </tr>
        <tr> 
          <td height="81">
            <blockquote>
              <p>-=&gt;只需填好收件人邮箱邮件主题及右边各项内容,点击发送按钮即可.</p>
              <p><hr>
              黄泉<br>
              <a href="http://7971.yeah.net">TextMail I v1001</a><br>
              <a href="http://7971.yeah.net">&gt;&gt; 简易版 &lt;&lt;</a><br>
            </blockquote>
          </td>
        </tr>
      </table>
    </td>
    <td  rowspan="2" width="66%"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f9f1f1" height="100%" class="fontsize9">
        <tr> 
          <td>
            <blockquote> 
              <p> -=&gt;邮件发送失败<br>
                可能因为邮件服务器错误，你可以：<br>
                <a href="javascript:history.go(-1)">点击返回邮件发送主界面重新发送...</a><br>
                <a href=<? echo $home; ?>>若想返回本站主页，请点击这里 ...</a></p>
            </blockquote>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> </tr>
</table>
</body>
</html>
<?}
	}
/************************************************************
       以上内容为提交邮件后发生，否则显示下面标准页面	
*************************************************************/

else
{
?>
<html>
<head>
<title><? echo $homename."在线邮件发送"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
a            { color: #324E40;  text-decoration: none }
a:hover      { color: #F83430; text-decoration: line overline }
.fontsize9 {  font-size: 9pt; cursor: hand}
.fontsizeTitle {  font-size: 10pt}
INPUT{BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #cccccc; PADDING-BOTTOM: 1px; BORDER-TOP-COLOR: #cccccc;background-color: #efefef; PADDING-TOP: 1px; HEIGHT: 18px; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #cccccc}
textarea {border-width: 1; border-color: #000000; background-color: #efefef; font-family: 宋体; font-size: 9pt; font-style: bold;}
select {border-width: 1; border-color: #000000; background-color: #efefef; font-family: 宋体; font-size: 9pt; font-style: bold;}
BODY{FONT-FAMILY: 宋体; FONT-SIZE: 9pt;
SCROLLBAR-HIGHLIGHT-COLOR: buttonface;
SCROLLBAR-SHADOW-COLOR: buttonface;
SCROLLBAR-3DLIGHT-COLOR: buttonhighlight;
SCROLLBAR-TRACK-COLOR: #eeeeee;
SCROLLBAR-DARKSHADOW-COLOR: buttonshadow}
-->
</style>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="images/bg.jpg">
<br>
<table width="97%" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#333333">
  <tr><a href="/">网站首页</a></font>│

<font size="2" color="blue"><a href="/wish/wish.php">祈愿板</a></font>│
<font size="2" color="blue"><a href="/photo/pcd.php">网友相册</a></font>│
<font size="2" color="blue"><a href="/download/index.php">相关下载</a></font>│
<font size="2" color="blue"><a href="/chat/login.php">聊天室</a></font>│
<font size="2" color="blue"><a href="/stat/index.php">流量统计</a></font>│
<font size="2" color="blue"><a href="/book/index.php">文章欣赏</a></font>│
<font size="2" color="blue"><a href="/riji/riji.php">黄泉日记</a></font>│
<font size="2" color="blue"><a href="/tongxue/index.php">交友录</a></font>│
<font size="2" color="blue"><a href="/wannian/calendar.php">万年历</a></font>│
    <td height="23"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="4" height="100%" bgcolor="#fccdcd" class="fontsize9">
        <tr>
          <td width="83%"> &gt;&gt; 欢迎您~!&lt;&lt; <img src="images/mail.gif" width="13" height="15" align="bottom"> 
            <a href=<? echo $home; ?>><? echo $homename; ?></a>在线邮件发送</td>
          <td width="17%"> 
            <div align="center"><a href=<? echo $home; ?>><img src="images/home.gif" width="46" height="16" border="0"></a> 
            </div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="97%" border="0" cellspacing="0" cellpadding="0" align="center" height="60">
  <tr>
    <td width="50%"><img src=<? echo $homelogo; ?>></td>
    <td width="71%">&nbsp;</td>
  </tr>
</table>
<br>
<table width="97%" border="0" cellspacing="0" cellpadding="1" height="135" align="center" bgcolor="#333333" class="fontsize9">
  <tr> 
    <td height="21" colspan="2">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="117%" class="fontsizeTitle">
        <tr bgcolor="#fccdcd"> 
          <td width="24%" height="23">&nbsp;</td>
          <td width="76%" height="23"><img src="images/email.gif" width="16" height="16" align="absmiddle"><font face="黑体"> 
            <a href=<? echo $home; ?>><? echo $homename; ?></a></font><font color="#485E59" face="黑体">在线电子邮件发送</font></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td rowspan="2" width="30%"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%" bgcolor="#fbe8e8" class="fontsize9">
        <tr> 
          <td height="25"><img src="images/mail.gif" width="13" height="15"> 邮件发送说明</td>
        </tr>
        <tr> 
          <td height="81">
            <blockquote>
              <p>-=&gt;只需填好收件人邮箱邮件主题及右边各项内容,点击发送按钮即可.</p>
              <p><hr>
              黄泉<br>
              <a href="http://7971.yeah.net">TextMail I v1001</a><br>
              <a href="http://7971.yeah.net">&gt;&gt; 简易版 &lt;&lt;</a><br>
            </blockquote>
          </td>
        </tr>
      </table>
    </td>
    <td  rowspan="2" width="76%"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f9f1f1" height="100%">
        <tr> 
          <td> 
            <table width="96%" border="0" cellspacing="2" cellpadding="2" class="fontsize9" align="center">
              <tr> 
                <td rowspan="5" width="38%" ><font color="#485E59">○→</font><b><font color="#485E59">收件地址：</font></b> 
                  <div align="left"><font color="#485E59">○→<b>邮件主题：</b> </font></div>
                  <div align="left"> <font color="#485E59">○→<b>发信地址：</b> </font> 
                    <p><font color="#485E59">□→<b>邮件内容：<br>
                      <br>
                      </b></font><b><br>
                      <br>
                      </b></p>
                  </div>
                  </td>
                <td  rowspan="5" width="66%"> 
                  <form method="post" action="index.php?send=1">
                    <br>
                    <input type="text" name="to" value=<? echo $default_to; ?>  size="60">
                    <br>
                    <input type="text" name="subject" size="60" value=<? echo $default_subject; ?>>
                    <br>
                    <input type="text" name="from" size="60" value=" xxx@xxx.com">
                    <br>
                    <textarea name="message" rows="14" cols="60"><?   echo $default_message; ?></textarea>
                    <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="sendmail" value="发送邮件">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="result" value="清除重写">
                  </form>
                </td>
              </tr>
              <tr> </tr>
              <tr> </tr>
              <tr> </tr>
              <tr> </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> </tr>
</table>
</body>
</html>
<?
}
?> 