السلام عليكم

لدية سكربت ارسل لصديقك .. يعمل ولكن اللغة العربية تصل باحرف غير مفهومة .. خلال بحثي وجدت علية استخدام مثل هذا الكود مع فنكشن الارسال
كود PHP:
$headers "(anti-spam-content-type:) text/plain; charset=windows-1256\n"
ولكني لم اعرف كيف اضيفة للفنكشن .. هذا السكربت

كود PHP:
<?php
/***********************************************************/
/*  This script was created by Lee Penney.  Feel free to   */
/*  amend it and use it wherever you want, but please      */
/*  leave this credit intact.                              */
/*                                                         */
/*  My personal site is at www.thedigeratipeninsula.org.uk */
/*  and you can find more free scripts by me at            */
/*  www.viewfinderdesign.co.uk                             */
/*                                                         */
/*  To use this script, just change the site name and site */
/*  address details below, then put the file in a          */
/*  directory called 'recommend'.  Then put everything     */
/*  between the <script> tags in the enclosed index.html   */
/*  file in the html of the page you are using where you   */
/*  want the link to appear.                               */
/***********************************************************/

/* Change these details to suit your needs */

/* Enter the company name or site name here */
$sitename "";

/* Enter the site web address */
$siteaddress "/";

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>Send to friend</title>
<!--<link href="default.css" rel="stylesheet" type="text/css" /> Uncomment this line if you have a CSS file you wish to use -->

</head>

<body>
<?php

/* Do not edit below this line unless you know what you're doing */

$yname $_POST['yname'];
$yemail $_POST['yemail'];
$femail $_POST['femail'];
$comments $_POST['comments'];
$pageurl $_POST['loc'];

function 
outputform() {

$pageurl htmlentities($_GET['loc']);
//$pageurl = $_SERVER['HTTP_REFERER'];
?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<label for="yname">:اسمك</label>
<input type="text" name="yname"dir="rtl" id="yname" value="<?php echo "$_POST[yname]"?>" />

<label for="yemail">:بريدك الالكتروني</label>
<input type="text" name="yemail" id="yemail" value="<?php echo "$_POST[yemail]"?>" />

<label for="femail">:بريد صديقك</label>
<input type="text" name="femail" id="femail" value="<?php echo "$_POST[femail]"?>" />

<label for="comments">  يمكنك اضافة نص لصديقك </label>
<textarea name="comments" rows="3" id="comments"dir="rtl"><?php echo "$_POST[comments]"?></textarea>

<input type="hidden" id="loc" name="loc" value="<?php echo "$pageurl"?>" />


<input type="submit" id="submit" name="submit" value="ارسل الان" style="float: right">

</form>

<?php
}

if (
$_POST['submit']) {

    if ((
$yname=="") || ($femail=="")|| ($yemail==""))  {

  print 
"<p><font size=\"12px\" color=\"red\"><strong>خطأ</strong>رجاء املء كل الحقول .. باستثناء كتابة تعليق ان لم ترغب بكتابة تعليق</font></p>";


outputform();
    }
    else {
      if (!
eregi("^[a-z0-9]+([-_\.]?[a-z0-9])+@[a-z0-9]+([-_\.]?[a-z0-9])+\.[a-z]{2,4}"$yemail)) {
       print 
"<p><font size=\"12px\" color=\"red\"><strong>لايبدو انك ادخلت بريد صحيح حاول مجددا</strong>.. بكتابة بريدك الصحيح </font></p>";

          
outputform();
          exit;
    }
      if (!
eregi("^[a-z0-9]+([-_\.]?[a-z0-9])+@[a-z0-9]+([-_\.]?[a-z0-9])+\.[a-z]{2,4}"$femail)) {

     print 
"<p><font size=\"12px\" color=\"red\"><strong>حدث خطأ :</strong>بريد صديقك المدخل غير صحيح او باحرف غير مسموح بها</font></p>";
          
outputform();
          exit;
    }
    
$comments stripslashes($comments);
        
mail("$femail"," موقع مرسل من صديقك","\n\n$yname صديقك يقترح عليك مشاهدة هذا الموقع  \n\nURL: $pageurl \n\n وقد ترك لك رساله \n------------------------------------ \n$comments \n------------------------------------\n\n $sitename ($siteaddress)","From:$yemail");

  echo 
"<p>$femail<strong>تم الارسال الى   </strong> </p><p><a href=\"javascript:window.close()\">اغلق الصفحة</a></p>";
}
}
else {
outputform();
}
?>
</body>
</html>