you have the recordset code inside of a loop that goes through the FORM post, but you do not have a form for this email.
change this code:
<?php
foreach( $_POST as $pkey => $pval ){
if (!RemoveValue($pkey,$remove,$removeBegins,$removeEnds,$removeIncludes)) {
?>
<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;"><?php echo(str_replace("_"," ",$pkey)); ?>:</th>
<td style="font-size: 12px; padding: 3px;">
<?php echo(str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval):$pval))); ?>
<?php echo($RecipArray[$RecipIndex][0]["[fname]"]); ?> <?php echo($RecipArray[$RecipIndex][0]["[lname]"]); ?>
</td>
</tr>
<?php
}
}
?>
to:
<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;"><?php echo(str_replace("_"," ",$pkey)); ?>:</th>
<td style="font-size: 12px; padding: 3px;">
<?php echo(str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval):$pval))); ?>
<?php echo($RecipArray[$RecipIndex][0]["[fname]"]); ?> <?php echo($RecipArray[$RecipIndex][0]["[lname]"]); ?>
</td>
</tr>