if you wanna send something from the result of your query
something like this in your code might help
I'm pretty new to this too I can't offer much help
Your basically gonna need to use the mail function.
This will send a plain text email, unless you specify your using mime in the $headers.
Something like
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
while ($row = mysql_fetch_array($recordset1))
{
//I'm assuming you might have a row of emails addresses you want to send to here
$email = $row_recordset1['email'];
$someOtherVariablesYouWannaInclude = $row_recordset1['one of your tables fields'];
mail("$email", stripslashes($_POST[subject]), ($_POST[message]), $someOtherVariablesYouWannaInclude $headers);
print "newsletter sent to: $email<br>";
}
Hope it's good, first time post offering help to someone 😛