I am using this code to send emails but when the user send something in arabic I get unreadable message like this:

تجربة من Ø§Ù„ØµÙØ*Ø© العربية

here is my code.. please help..

<?php
	$ToEmail = 'reception@rmc.bh'; 
	$EmailSubject = 'Email from rmc.bh '; 
	$mailheader = "From: ".$_POST["email"]."\r\n"; 
	$mailheader .= "Reply-To: ".$_POST["email"]."\r\n"; 
	$mailheader .= 'Bcc: dhr@rmc.bh' . "\r\n";
	$mailheader .= 'Bcc: jkh@rmc.bh' . "\r\n";
	$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";   
$MESSAGE_BODY .= nl2br($_POST["message"])."<br><br><br><hr>"; $MESSAGE_BODY .= "IP Address: ".$_SERVER["REMOTE_ADDR"]."<br>"; mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); header('Location: http://www.rmc.bh/thankyou.php'); ?>

    Considering that ISO-8859-1 doesn't support any part of the Arabic language, I'd say your choice of character sets is the problem.

      charactersets? where should I set it?

      I have attached here the contact.php as well...

        and here is the form passing the email and it's utf-8

        <form id='contactus' action='send_mail.php' method='post' accept-charset='UTF-8'>

          How are they sending emails back? Are they just replying through their email client?

            I found where is the problem.

            it's on this line and i changed it to utf-8 in addition to the utf-8 in the form.

            $mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";    

            Thank you

              Write a Reply...