Hi,
I pass the variables of a form to a mailscript. With this script I send plain text and HTML mail to the submitter of the form. I use a snippet I found at http://www.zend.com/zend/trick/html-email.php. The HTML text is stored in the $headers variable:
$headers="<h1>Results</h1><br>
<b>Name: $name</b><br>"
Well, everything OK, so far. The mail is sent and the layout is fine. But now I want to send some money values and I have to convert the currency. How can I place a calculation in the HTML text. Something like this won't work:
$headers="<h1>Results</h1><br>
<b>Name: $name</b><br>
<b>Total price: $price*$currency</b><br>"
I tried to change the last line to:
<b>Total price: ".$price*$currency."</b><br>",
but that doesn't work as well...
How can I solve this problem? Any tips are very welcome! Thanks!