Kodlama Dili : PHP

Kısa Açıklama : DB’den gelen mail listesine aynı anda mail atmak için kullanılır.

Kod :

<? 
ob_start
(); 

$tablo_adi            ""

$tablo_sutun            ""

$mail_sayi_sorgu mysql_query("SELECT COUNT(*) FROM $tablo_adi"); 

list(
$mail_sayi_sonuc) = mysql_fetch_row($mail_sayi_sorgu); 

mysql_free_result($mail_sayi_sorgu); 

$basla                $_GET["basla"] ? $_GET["basla"] : 0

$limit                1

$bekle                2

$konu                "";  

$mesaj                ""

$ustk                "From: xxx <info@pehepe.org>\n";  

$ustk                .= "X-Sender: <info@pehepe.org>\n";  

$ustk                .= "X-Mailer: PHP\n";  

$ustk                .= "X-Priority: 3\n";  

$ustk                .= "Return-Path: <info@pehepe.org>\n";  

$ustk                .= "Content-Type: text/html; charset=iso-8859-9\n";  

$mail_sorgu mysql_query("SELECT $tablo_sutun FROM $tablo_adi limit $basla,$mail_sayi_sonuc"); 

$mail_sonuc mysql_fetch_object($mail_sorgu); mysql_free_result($mail_sorgu); 

$mail_adres $mail_sonuc->eposta

mail($mail_adres$konu$mesaj$ustk);  

echo "<b> Alıcı : </b>$mail_adres <br>"

echo 
"<b>Gönderilen :</b> $basla <br>"

echo 
"<b>Kalan :</b>"; echo $mail_sayi_sonuc-$basla; echo " <br>"

if($mail_sayi_sonuc $basla+$limit){  

    
header("refresh: $bekle; url=index.php?basla=".($basla+$limit)); 

}  
?>