Hi Chris,
Yup, the DB is setup before the UE code and the following is used for the 'TO' email address:
<?php echo $row_rsCompany['fr_Email']; ?>
As this is pulled from the DB on the page, the code you used would be applicable if the email address was being sent via POST as opposed to pulled from the filtered database recordset, unless I'm way off base with it :0)