addTo mail function ZF2 for send multiple recipients

I have case with mail function
how to use looping addTo ZF2 mail method for send multiple recipients?

i try with foreach but not work, here my code


Use an array as parameter for the method addTo. See also the description at the documentation: “zend-mail – Messages: addTo

Hi frosch thanks, it works!