File size: 867B
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<link href="../theme/style.css" rel="stylesheet" type="text/css" />
<div class="title">Admin Mail</div>
<?php include "../inc/connect.php";
include "../inc/def.php";
$act=secureget('act');
if($act=="mail")
{
echo'<div class="line">Site system setting</div>
<form action="?act=sent" method="post">
Subject: <input type="text" name="sub" /><br>
Massage: <br/><input type="text" name="msg" rows="5" cols="20">
<br>
<input type="submit" value="sent" />
</form>
<div class="last"><a href="index.php">BacK</a></center>';
}
if($act=="sent")
{
$rs = mysql_query('SELECT mail from users LIMIT 0, 149');
$from = "Globalads.Tk";
$headers = "From:" . $from;
while(list($mail) = mysql_fetch_row($rs))
{
// Send Email
mail($mail,''.$_POST['sub'].'',''.$_POST['msg'].'',$headers);
}
}
?>