Andrew, It's always useful to check that PHP is actually getting results: while ($row = mysql_fetch_array($result)) { $EmailTo .= ", " . $row["email"]; * echo "$EmailTo"; $ok = true; } *insert this line and each email address should be echo'd to your screen as PHP works through the DB. If nothing shows you have a DB problem HTH