i'm having Problem with sending Email in Persian. It's Ok on gmail, all of the text shows fine. But in the orders like yahoo, cpanel webmail, etc I'm getting unknown characters. What should i do to fix this?
Here is my code:
<?php
function emailHtml($from, $subject, $message, $to) {
require_once "Mail.php";
$headers = array ('MIME-Version' => "1.0", 'Content-type' => "text/html; charset=utf-8;", 'From' => $from, 'To' => $to, 'Subject' => $subject);
$m = Mail::factory('mail');
$mail = $m->send($to, $headers, $message);
if (PEAR::isError($mail)){
return 0;
}else{
return 1;
}
}
?>
I'm using PEAR mail to sending Email.