Lets start with the standbyconfirm.php page. the issue there is the following code at lines 8 - 12:
?>
<?php?>
<?php
edit that code to:
?>
<?php
For the confirm.php page, the issue is caused by code order.
The order of the server behaviors:
Universal Email
eCart Store Cart Summary
eCart Store Cart Details
needs to be changed so the email is sent after the details are stored:
eCart Store Cart Summary
eCart Store Cart Details
Universal Email