I am using the PHP Mailer library, to send emails, in this case if you send them, but only to a single email address, and I want, through an array that brings me certain emails from the bd and can send to each of them. This is the code of the library where the recipient goes.
$mail->addAddress('yourusermail.com');
I can not add for example:
$mail->addAddress('yourusermail.com', '[email protected]', '[email protected]');