title: php mailer and html includes with php variables
body: <p>Hello I am trying to send html emails using php mailer class. The problem is i would like to incllude php variables in my email while using includes as to keep things organized. Heres my php mailer....</p>
  
  <pre><code> $place = $data['place'];
   $start_time = $data['start_time'];
  
  $mail-&gt;IsHTML(true);    // set email format to HTML
  $mail-&gt;Subject = "You have an event today";
  $mail-&gt;Body = file_get_contents('../emails/event.html');
  $mail-&gt;Send(); // send message
  </code></pre>
  
  <p>my question is, is it possible to have php variables in event.html ? i tried this with no luck (below is event.html)..</p>
  
  <pre><code>&lt;table width='600px' cellpadding='0' cellspacing='0'&gt;
  &lt;tr&gt;&lt;td bgcolor='#eeeeee'&gt;&lt;img src='logo.png' /&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td bgcolor='#ffffff'  bordercolor='#eeeeee'&gt;
  &lt;div style='border:1px solid #eeeeee;font-family:Segoe UI,Tahoma,Verdana,Arial,sans-serif;padding:20px 10px;'&gt;
  &lt;p style=''&gt;This email is to remind you that you have an upcoming meeting at $place on $start_time.&lt;/p&gt;
  &lt;p&gt;Thanks&lt;/p&gt;
  &lt;/div&gt;
  &lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>