This can be done with FormMail's Advanced Templates feature, which is available with the Computation Module, but it's not a free product (source code license is currently US$245).
Originally Posted by scottmaui
Here's an example of what it would look like:
A template cannot use PHP in this way because the template values are inserted after the PHP has been executed on the server.
Quantity order: $product_qty
Here's a operational example: