Adding Content-type to Pear Mail
<p>i'm assuming setting a content type of text/html format income emails to the default font style and size of the clients/users machine. User Pear Mail how would I add in a content type. All the examples I've send only show adding content-type with mime attachments.</p>

<p>Also if there is another way to make and incoming email default to users mail clients font style and size, I'd like to know. </p>

<p>would like to add</p>

<pre><code>$headers  = "MIME-Version: 1.0\r\n"; 
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
</code></pre>

<p>current mail code</p>

<pre><code>$from = "sys@test.com";
$to = $SendTo;
$subject = "Contact : " . $uxGlobalLocation;
$body = $Bodycopy;
$host = "mail.set.co";
$username = "donotreply@set.co";
$password = "empty00";
$headers = array ('From' =&gt; $from,
'To' =&gt; $to,
'Subject' =&gt; $subject);
$smtp = Mail::factory('smtp',
array ('host' =&gt; $host,
'auth' =&gt; true,
'username' =&gt; $username,
'password' =&gt; $password));
$mail = $smtp-&gt;send($to, $headers, $body);
if (PEAR::isError($mail)) {
echo("&lt;p&gt;" . $mail-&gt;getMessage() . "&lt;/p&gt;");
} else {
header ('Location: /');
exit();
}
</code></pre>

<p><strong>EDIT Possible answer</strong></p>

<pre><code>$headers = array ('From' =&gt; $from,
'To' =&gt; $to,
'Subject' =&gt; $subject,
'Content-Type' =&gt; 'text/html; charset=iso-8859-1',
'MIME-Version' =&gt; '1.0');
</code></pre>
