You cant declare the variable "$to" in that way, you are writing 2 emails in the same variable, the parameters just need 1 email address. If you want to send multiple emails for different email adresses, you can:
1.-Make another mail() function to send a mail for each email adress or
2.- You can...