title: Passing a variable into PHPMailer body
body: <p>I am using PHPMailer to send emails after registration, but I can't seem to put a variable into </p>
  
  <pre><code>$htmlBody = '&lt;html&gt;&lt;body&gt;&lt;a href = "http://www.mywebsite.com/confirm_registration.php?passkey={$com_code}"&gt;Confirm&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;';
  </code></pre>
  
  <p>Where $com_code is a unique passkey attached to a link received by the user in their email. The problem is that $com_code is showing up as $com_code instead of the actual string. Any ideas would be helpful.</p>