It seems likely to me based on your description that it is the recordsets that are causing the problems. Have you tried this with another recordset that is unique? One problem you could have with recordsets like this is that the pointer is already advanced causing the looping to be off. I think it would be best to use uniquely named recordsets for your email.
The first error you are reporting looks like it is coming from your WA_Universal_E mail\WAUE_ordersview_1.php on line 148. What is the code that you have in this page on this line?