<?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.";
?>