title: PHP Mail Encodes Subject Line
body: <p>When I try to send a HTML encoded email from PHP, if the subject line contains special chars like <code>"Here's the information you requested"</code>, PHP encodes it to read <code>"Here&amp;#039;s the information you requested."</code></p>
  
  <p>How do I fix this?</p>
  
  <hr>
  
  <p>Here's what the code looks like using PHP mail():</p>
  
  <pre><code>$headers  = 'MIME-Version: 1.0' . "\r\n";
  $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  
  $headers .= 'To: ' . $mod_params['name'] . '&lt;' . $mod_params['email'] . '&gt;' . "\r\n";
  
  $headers .= 'From: &lt;do_not_reply@a4isp.com&gt;' . "\r\n";  
  
  $email_to = $mod_params['email'];
  
  $email_sub = "Here's the Information You Requested";
  
  $body = html_entity_decode("&lt;html&gt;&lt;body&gt;" . $email_html_body . "&lt;/body&gt;&lt;/html&gt;");
  
  mail($email_to,$email_sub,$body,$headers);
  </code></pre>
  
  <p>It gives the same error as running it through the SugarPHPMailer class.</p>