Home >Backend Development >PHP Tutorial >My mass mailing program_PHP tutorial

My mass mailing program_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:02:09911browse


UNTITLED
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 "";}
?>

群发邮件



邮件主题:>


邮件内容:





  

【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】    


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/316712.htmlTechArticleHTML 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 ($ro...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn