User Recommendation Email Body
<p>The code below works great.  It allows a user to send emails to other people in order to recommend my site.  </p>

<p>How can I replace "Michael" below with  $_POST['sendername']?  I tried and it didn't work.</p>

<p>Thanks in advance,</p>

<p>John</p>

<pre><code> $msg = "&lt;html&gt;&lt;body&gt;Hello, your friend Michael recommends that you use &lt;a href='http://www.site.com/'&gt;site.com&lt;/a&gt;  Please visit the site.&lt;br&gt;&lt;br&gt;&lt;img src='http://site.com/images/blacklogo.PNG'&gt;&lt;/body&gt;&lt;/html&gt;";
    $subject = "Try out Site.com";
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    $headers .= 'From: ' . $_POST['sendername'] . "\r\n";
    foreach($_POST['email'] as $email){
    mail($email, $subject,$msg,$headers);
    }
</code></pre>
