PHPMailer sending double emails
问题 I am working on theapplication that fetches clients emails from DB, stores them in a array, loop through the array and send email to each client individually. The problem occurred when PHPMailer is sending a double email to clients and also in and in one of emails "to" field contains both recepient address and in second email there is also a second clients emails as well. I consider this as a vulnerability. Here is my code: $array = [ 0 => 'email@gmail.com' , 1 => 'email2@gmail.com' ]; /