How can I use the mail function to send the results of the array?
Just for a small example, I have:
Code: Select all
$mailcontent=
foreach ($location as $loc)
{
echo $loc . "<br/>";
} . " Thank you!" ;
mail($toaddress,$subject, $mailcontent);