⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 开源的OA系统
💻 PHP
字号:
<?php
if ( !empty($_REQUEST['title']) and !empty($_REQUEST['body']) ) {
    //$filepath   = "E:/myjob/mail/";
    $filepath   = "/home/vhosts/oa_html/mail/";	
    $file_name = $_FILES['filename']['name'];
	$filepath 	= $filepath.$file_name;  
	copy($_FILES['filename']['tmp_name'],$filepath);
	mt_srand((double)microtime()*1000000);
	$shpid = uniqid(mt_rand());
	@rename("$filepath","$shpid");
	$garray = file($shpid); 
	$cog=count($garray); 
	for($i=0;$i<$cog;$i++){ 
    	$larray = explode(" ",$garray[$i]); 
    	$address=$larray[0];
	    mail($address,$title,$body); 
	}
	@unlink($shpid);
	echo "<html><head><title>邮件发送中</title></head><body bgcolor=#000000><center><a href=index.php><font color=#ffffff>发送成功!</font></index></center></body></html>";

} else {
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/a1.css" rel="stylesheet" type="text/css">
<title>Linux邮件群发系统</title>
<style type="text/css">
<!--
.style1 {
	font-size: 24px;
	font-weight: bold;
	color: #333333;
}
.style2 {font-size: 12px; font-weight: bold; color: #333333; }
-->
</style>
</head>

<body leftmargin="0" topmargin="0">  <br>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><table width="687" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="712" height="32"><span class="style1">Linux邮件群发系统</span></td>
        </tr>
        <tr>
          <td bgcolor="#3093E4" height="1"></td>
        </tr>
      </table>
  <br><form action=index.php method=post enctype="multipart/form-data">
      <table width="703"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="716" height="211"><table width="692" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#8BB3D6">
            <tr>
              <td width="125" height="27" bgcolor="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp;邮件地址:</td>
              <td width="564" colspan="3" align="left" bgcolor="#FFFFFF"><input type=file size=50 name=filename></td>
              </tr>
            <tr>
              <td width="125" height="31" bgcolor="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp;主&nbsp;&nbsp;&nbsp;&nbsp;题:</td>
              <td colspan="3" align="left" bgcolor="#FFFFFF"><input type=text name=title size=60></td>
              </tr>
            <tr>
              <td height="48" bgcolor="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp;内&nbsp;&nbsp;&nbsp;&nbsp;容:</td>
              <td colspan="3" align="left" bgcolor="#FFFFFF"><textarea cols="70" rows="15" name="body"></textarea></td>
              </tr>
			  </table><table>
            <tr>
              <td width="691" height="29" colspan="4" align="center" bgcolor="#FFFFFF">&nbsp;&nbsp;&nbsp;
                <input type=submit class="rightbottom" value=开始群发邮件></td>
              </tr>
          </table><br><br><br>
              <table width="560" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td bgcolor="#3093E4" height="1"></td>
                </tr>
                <tr>
                  <td width="598" height="32"><div align="center"><span class="style2">上海明宏生物工程有限公司 版权所有 </span></div></td>
                </tr>
            </table>                
          </td>
        </tr>
    </table></form></td>
  </tr>
</table>
</body>
</html>
<?php
}
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -