title: How to customize the way an email looks sent from a php mail() script
body: <p>So I can't seem to word the question right - but I would like to know how would you go about changing the way this </p>
  
  <pre><code>$Body = "";
  $Body .=   "Name: ";  
  $Body .= $Name;
  $Body .= "\n";
  $Body .= "City: ";
  $Body .= $City;
  $Body .= "\n";
  $Body .= "Email: ";
  $Body .= $Email;
  $Body .= "\n";
  $Body .= "Message: ";
  $Body .= $Message;
  $Body .= "\n";
  </code></pre>
  
  <p>looks when it reaches my e-mail. When I receive the e-mail (using it as a contact form), I get this -> </p>
  
  <pre><code>Name: lloan
  City: SomeCity
  Email: some@email.com
  Message: Testing
  </code></pre>
  
  <p>I tried <code>&lt;strong&gt; $Body .=   "Name: ";&lt;/strong&gt;</code> and that didn't work - I also tried it as <code>$Body .=   "&lt;strong&gt; Name: &lt;/strong&gt;";</code> and again, nothing. Can anyone point me in the right direction? I really want to learn how to do this - I've googled it a couple of times, but I think it's the way I'm wording my question that's not helping me.</p>
  
  <p>EDIT: So I'm able to do this now - <code>$Body .=   "&lt;strong&gt;Name: &lt;/strong&gt;";</code> using the suggestions below of adding the headers and then adding that to the mail() function - however, how do I go about using it on a bigger scale? For example - What if I want to have a colored background or what not - Am I also able to use CSS in this kind of situation? The other questions on SO do not answer this in it's entirety.</p>