Depends on what you are trying to email..
$query = mysql_query("SELECT * FROM table");
$message = array();
while($row = mysql_fetch_array($query))
$message[] = $row['rowname'];
$contents = NULL;
foreach($message as $key => $value)
$contents .= "$key: $value\n";
mail("to","subject",$contents, "headers..");
Although I'm not sure of what you are trying to acomplish 🙂