you have 3 recordset loops, you should only have 1 for the email column.
in the template file, you have this code:
<?php echo($RecipArray[$RecipIndex]["[ID]"]); ?>
it should be
<?php echo($RecipArray[$RecipIndex]["ID"]); ?>
and you should also have this code at line 1:
if you continue to have problems, include the webassist/email/waue_email_1.php file in your attachment.