I assume that for message types of type text / html format for content, the default font style and client / user machine size are set. User Pear Mail, how to add to the content type. All the examples I posted show only adding a content type with mime attachments.
Also, if there is another way to make and by default send the default font mail clients and font sizes of email clients, I would like to know.
I would like to add
$headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
current postal 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' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>"); } else { header ('Location: /'); exit(); }
EDIT Possible answer
$headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject, 'Content-Type' => 'text/html; charset=iso-8859-1', 'MIME-Version' => '1.0');
source share