📄 m_send.php
字号:
<?
include("../includes/fun_post.php");
include("fun_check.php");
include("../includes/fun_data.php");
include("../includes/fun_mail.php");
include("../includes/inc_var.php");
$mail_subject=$_POST["subject"];
$mail_body= $_POST["content"]."
==============================================================
本邮件由“星雨留言板”管理系统发送。欢迎访问:http://www.xxiyy.com
";
$id = $_POST["id"];
$sendmail = new MailSender($g_mail, $mail_subject, $mail_body);
DB($g_db_host, $g_db_name, $g_db_user, $g_db_password);
$db = new DBReader;
$sql = "SELECT * FROM `".$g_db_prefix."user`";
if($id != 0)
$sql .= " WHERE u_ID = '".$id."'";
$db->execute($sql);
$total = $db->count();
$i = 0;
while($dbrow = $db->reader())
{
$mail_addr=$dbrow["u_mail"];
if($sendmail->Sendto($mail_addr)==true)
$i++;
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>星雨留言板</title>
<link rel="stylesheet" type="text/css" href="../includes/main.css">
</head>
<body>
<table width="100%" border="0">
<tr>
<th>邮件发送完毕</th>
</tr>
<tr>
<td align="center">共发送邮件 <font color="#FF0000"><strong><?php echo $total;?></strong></font> 封,
<font color="#FF0000"><strong><?php echo $i;?></strong></font> 封发送成功。</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -