// first way: Concatenation
$to = "first@email.com,"; // make sure you have those commas
$to .= "second@email.com,"; // etc.
mail ("$to","$subject","$message");
// everyone will be able to see everyone else's email address
// many people find this to be a bad thing
// second way: Array
$to = array("first@email.com","second@email.com");
for ($i = 0; $i < count($to); $i++) {
mail ("$to[$i]","$subject","$message");
}
// each address gets their own message
// array can be built using a loop