in your file, you have:
$CurIndex = sizeof($RecipArray);
$RecipArray[$CurIndex] = EmailArrayFromFile("rsmembers.MemberEmail");
$TotalEmails += sizeof($RecipArray[$CurIndex]);
that should be changed to:
$CurIndex = sizeof($RecipArray);
$RecipArray[$CurIndex] = array();
$RecipArray[$CurIndex][] = $row_rsmembers;
$RecipArray[$CurIndex][] = $rsmembers;
$RecipArray[$CurIndex][] = "MemberEmail";
$TotalEmails += mysql_num_rows($rsmembers);