我的群发邮件程序
时间:2020-11-07 21:30:50|栏目:PHP代码|点击: 次
<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>
【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】
<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>
【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】
上一篇:php 无限极分类
栏 目:PHP代码
下一篇:PHP微信支付实例解析
本文标题:我的群发邮件程序
本文地址:http://www.codeinn.net/misctech/19965.html