$tmpemail = mysql_query("SELECT email_address
WHERE users.status = 'Active'", $conn) or die('Query failed: ' . mysql_error());
while ($row = mysql_fetch_array($tmpemail, MYSQL_ASSOC))
$recepients = $row["email_address"];
The above array $row["email_address"] contains a number of email addresses. We want the variable $recepients to have all the email addresses in it and with semi-colons in between, for example "email@example.com; firstname.lastname@example.org; email@example.com", etc ...