function Send_Pm_To_User($mail,$name,$pm,$subject)
{
$Mailto=$mail;
$email='info@mysite.com';
$width='width=90';
$pm_style="style=\"color: #123456;display: block;width:400px; font-size: 11px; font-family: Tahoma; font-weight: bold; background-color: #F0FFF0;padding: 20px;width: 350px;border: 6px double #485c80;font-align:right\" ";
$body="<div dir=rtl $pm_style>";
$body.="كاربر گرامي : $name <br>";
$body.=str_replace('\r\n','<br>',$pm);
$body.="<br><br><br><br><br><center><a href=http://wwwmysite.com/ target=_blank >www.mysite.com</a></center>";
$body.='</div>';
// echo($body);
$MP = "/usr/sbin/sendmail -t";
$header="From:".$email."\r\n"."Content-Type:text/html;charset=utf-8;dir=rtl";
$m=@mail($Mailto, $subject, $body,$header);
return 'true';
}