2012-01-11 11 views
0

のためにフォーマットされていない私は、電子メールを受け取ることができ、それはまた、アラビアを表示するが、それはまた、内からの電子メールアドレスを表示PHPに新しいですし、次のコードPHPメール何らかの理由

<?php 
$to  = '[email protected]'; 
$subject = 'the subject'; 
$message = '<table dir="rtl"><tr><td>'. "\r\n"; 
$message .= '<b>This is Bold</b></br> <i> This is Italics</i></br>شطب 14 مرشحا لمجلس الأمة الكويتي'. "\r\n"; 
$message .= '</td></tr></table>'; 
//Headers 
$headers = 'MIME-Version: 1.0' . "\r\n"; 
$headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n"; 
$headers .= 'Content-Transfer-Encoding: quoted-printable' . "\r\n" . 
$headers .= 'From: [email protected]' . "\r\n"; 
$headers .= 'Reply-To: [email protected]' . "\r\n"; 
$headers .= 'X-Mailer: PHP/' . phpversion(); 



ini_set ("SMTP", "smtp.xyz.com"); 

mail($to, $subject, $message, $headers); 

?> 

を使用して電子メールを送信電子メールの本文

その他の問題は、アラビア語が表dir-「RTL」で言及してもRTLであることです。それでもLTRとしてメッセージが表示されます。受信した電子メールの

例あなたはCSS2スタイルの代替を使用して試みることができる

[email protected] 
This is Bold 
This is Italics 
شطب 14 مرشحا لمجلس الأمة الكويتي 

答えて

関連する問題