create a .php file with this code:
<?php
define('ROOT_PATH', './4images/');
include(ROOT_PATH.'global.php');
$sql = "SELECT user_name, user_email, user_allowemails
FROM ".USERS_TABLE." c
WHERE user_allowemails <> 0
ORDER BY user_name ASC";
$result = $site_db->query($sql);
$users = array();
while ($row = $site_db->fetch_array($result)) {
$users[] = array($row['user_name'], $row['user_email']);
}
foreach ($users as $key => $val) {
echo $val[0]." - ".$val[1]."<br />";
}
?>
then, change ROOT_PATH .
this wont show users/emails who set "do not receive emails from admin" to yes.