Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: masinis emailų siuntimas

Parašė edis2· 2009 Rugs. 6 15:09:13
#3

<?php
$manoemail = "";
$subject = "Laisko antraste";
$message = "laisko zinute";



$message = nl2br($message);

$result = dbquery("SELECT user_email FROM ".$db_prefix."users WHERE user_hide_email!=1");
$to = ""; $i = 0;
while ($data = dbarray($result)) {
$to .= ($i != 0 ? ", " : "").$data['user_email'];
$i++;
}


mail($to, $subject, $message, "From: $manoemail");

echo "Laiskai issiusti visiems nariams.";
?>




Redagavo edis2· 2009 Rugs. 6 15:09:21