Files
oc-server3/local/mailing/email-addresslist.php
T
2013-06-20 21:06:47 +02:00

19 lines
437 B
PHP

<?php
// For license information see doc/license.txt
$opt['rootpath'] = '../htdocs/';
header('Content-type: text/html; charset=utf-8');
require($opt['rootpath'] . 'lib2/web.inc.php');
$rs = sql("SELECT email FROM user
WHERE NOT ISNULL(email) AND is_active_flag!=0 AND email_problems=0
ORDER BY user_id DESC");
while ($r = sql_fetch_assoc($rs))
{
echo $r['email'] . "\n";
}
sql_free_result($rs);
?>