<? @include(ECMS_PATH.'e/class/SendEmail.inc.php'); $sql=$empire->query("select email from {$dbtbpre}enewsmember where userid in ('".$userid."') and checked='1'");
$i=0; while($userr=$empire->fetch($sql)) { $i++ $array=($array[$i]=$userr[email];这个数组 怎么分割获取?);//邮件数组 用于发送每10人一组的邮件地址数组 if($i==10) { //发送邮件 $sm=EcmsToSendMail($array,"$title","$title"); //EcmsToSendMail("客户邮箱地址","邮件标题","邮件内容") echo $userr[email].$title."邮件已发送".$title."<br>";
$i=0//清空$i $array=array();//清空邮件数组 } }
//余下的数据 未满10个一组的 if($array 怎么判断 分割剩下不足10个的数组) { $sm=EcmsToSendMail($array,"$title","$title"); //EcmsToSendMail("客户邮箱地址","邮件标题","邮件内容") echo $userr[email].$title."邮件已发送".$title."<br>"; //发送邮件 } ?>
|