I need some assistance with php syntax.
I am trying to send an html email and cannot get this to work.
I copied the code I am using below.
I got this from a sample php mail example, but the sample did not have any variables within the html body.
I need to add a variable as you can see below, but I cannot figure out the syntax for this. I added the variable to the example $download and a bit of text in the html body so you can see what I am talking about.
Can anyone help me with the syntax?
<?php
$download = "$site_url/$cust_email/$cust_order.zip";
$headers = "From: you@yourcompany.com\r\nContent-type: text/html";
$body = "<HTML><BODY><CENTER>
<TABLE BORDER='1'>
<TR>
<TD align='center'><FONT COLOR='red'>
I need the variable above $download to be here along with other text.
I need the $download link to be a hyperlink so user can click on it.
</TD>
</TR>
</CENTER></BODY>
</HTML>";
mail("them@theiraddress.com", "HTML EMAIL", $body, $headers);
?>