A
Anonymous
Guest
I would just do it this way.
For a better understanding of the mail function, I would recommend you read my post:
http://www.jotorres.com/2011/10/simple-php-send-mail/
Hope that helps.
Code:
<?php
$message1 = "";
while($menu_info = mysql_fetch_array( $menu )) //loops to collect the data
{
$message1 .= $menu_info['track'];
$message1 .= $menu_info['artist'];
$message1 .= $menu_info['requests'];
}
//$message1 = "echo '<pre>'.print_r($track, true) .'</pre>';"
$sent = mail($to, $subject, $message1);
?>
For a better understanding of the mail function, I would recommend you read my post:
http://www.jotorres.com/2011/10/simple-php-send-mail/
Hope that helps.