Would this work if I were trying to email a bunch of users at once?
$ids = implode(",", $_POST['activate_users']);
$sql = "SELECT email FROM table WHERE userid IN ($ids)";
$query = mysql_query($sql);
$row = mysql_fetch_array($query);
$go = implode(",", $row['email']);
mail($go, $sub,$mesg, $header);