This would only send to the first record returned, not the entire list. You would have to hand edit it to get it to work since mysqli recordset lists isn't directly supported.
Just update this line:
$RecipArray[$CurIndex ][] = "".($emailTargets->getColumnVal("eMail")) ."";
to:
while (!$emailTargets->atEnd()) {
$RecipArray[$CurIndex ][] = "".($emailTargets->getColumnVal("eMail")) ."";
$emailTargets->moveNext();
}
The email information is saved in the session to help with debugging. You should be able to use:
<?php
session_start();
var_dump($_SESSION);
?>
on the page after sending the email to see more information about what was sent and if it returns an error.