<HTML>
<TITLE> UNTITLED </TITLE>
<?php
include "connect.inc.php";
if ($subject) {
$query = "select name,email from user";
$res = mysql_query($query);
$row = mysql_fetch_array($res);
while ($row) {
mail($row['email'],$subject,$row['name'].":n".$text."n中國廣告網,和你共成長。www.guanggaocn.comn","From:".$mailaddress);
$row = mysql_fetch_array($res);
}
echo "<script language='javascript'>";
echo "parent.location.href='welcome.php'";
echo "</script>";}
?>
<BODY>
<P ALIGN=CENTER><FONT FACE="隸書" SIZE="7" COLOR="#FF0000">群發郵件<BR><BR></FONT>
<P ALIGN=LEFT><FORM NAME="email" ACTION="email.php" METHOD="POST">
<FONT FACE="華文行楷" SIZE="6" COLOR="#0000FF">郵件主題:<INPUT TYPE=TEXT NAME="subject" SIZE="50" MAXLENGTH="18" value=<?php echo $subject ?>><BR><BR>
郵件內容:<TEXTAREA NAME="text" COLS="90" ROWS="3" value="<?php echo $text?>"> </TEXTAREA><BR><BR>
</FONT>
<INPUT TYPE=SUBMIT VALUE=發出郵件></FORM>
</BODY>
</HTML>
【本文版權歸作者與奧索網共同擁有,如需轉載,請注明作者及出處】