I am sure there is a simple syntax/coding problem here, however, I am trying to insert multiple variables into an e-mail body string and send as html.
When building the body ($body) for plain text the variables'work', but when trying to do the same thing in html, the variables won't come-up.
Example:
//Body of email plain text
$body="Here is the number of widgets to order: $order";
//Body of email html
$body='
<html>
<body> Here is the number of widgets to order: $order
</body>
</html>'
Plain text email shows:
Here is the number of widgets to order: 5
Html email shows:
Here is the number of widgets to order: $order
Is this something to do with quotes? Appreciate your help in advance.