Ok, I see that from the response I get from the server, but that seems to be a problem on two fronts.
1. If I use the framework module in other pages, it has to have the db connection in the file, so I cannot use that module in an email. It would be beneficial to use a framework module in an email or on a web page. My invoice is a module on the page. Other dynamic modules include event ended and soldout for example. The invoice module has a db connection and is also what I want to email.
2. Is there any way to bind the data source from the main page to the template file much the way WA provides the ability to bind form data from another page. That would be helpful.