title: Why are the html tags showing up in my string in PHP?
body: <p>I'm using a mail function which is sending back a message that is contained within the variable $body. I want to send the message to myself with certain words in bold and a number of break tags. </p>
  
  <p>Here is my code(HEREDOC SYNTAX):</p>
  
  <pre><code>$body = &lt;&lt;&lt;CTS
  &lt;h1&gt;&lt;b&gt;Order for $name on datevariable&lt;/b&gt;&lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;
  
  &lt;b&gt;&lt;u&gt;Administrative Details&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
  &lt;b&gt;Employee ID:&lt;/b&gt; $id&lt;br /&gt;
  &lt;b&gt;Cost Center:&lt;/b&gt; $cost_center&lt;br /&gt;
  &lt;b&gt;Approved By:&lt;/b&gt; $approved_by&lt;br /&gt;
  &lt;b&gt;Delivery Bldg:&lt;/b&gt; $delivery_bldg&lt;br /&gt;
  &lt;b&gt;Delivery Contact Email:&lt;/b&gt; $delivery_contact&lt;br /&gt;
  &lt;b&gt;Ext:&lt;/b&gt; $del_contact_ext&lt;br /&gt;
  CTS;
  </code></pre>
  
  <p>For some reason when I receive  the email, it looks like this: </p>
  
  <pre><code>&lt;h1&gt;&lt;b&gt;Order for James Important on datevariable&lt;/b&gt;&lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;
  &lt;b&gt;&lt;u&gt;Administrative Details&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
  &lt;b&gt;Employee ID:&lt;/b&gt; 213123&lt;br /&gt;
  &lt;b&gt;Cost Center:&lt;/b&gt; 132123&lt;br /&gt;
  &lt;b&gt;Approved By:&lt;/b&gt; Chris Seckla&lt;br /&gt;
  &lt;b&gt;Delivery Bldg:&lt;/b&gt; 6&lt;br /&gt;
  &lt;b&gt;Delivery Contact Email:&lt;/b&gt; test@email.com&lt;br /&gt;
  &lt;b&gt;Ext:&lt;/b&gt; 56&lt;br /&gt;
  </code></pre>
  
  <p>It fills in the variable values but for some reason ignores the html tags. Can someone please tell me how to fix this?</p>
  
  <p>Also, it is ignoring the break tags and only putting breaks when I leave a line of whitespace. Any ideas on this?</p>