Problem with mail form
Posted: Thu Sep 25, 2008 3:13 pm
Hello again!
I have create a contact form using php and flash and i have write the php file with this code:
<?
$to = "my mail here";
$msg = "$name\n\n";
$msg .= "$message\n\n";
$mailheaders = "MIME-Version: 1.0\r\n";
$mailheaders .= "Content-type: text/html; charset=UTF-8 \r\n";
mail($to, $subject, $msg,"Message From: Online client\nReply-To:, $mailheaders");
?>
The form is working ok but when i am trying to send a message in greek language i receive a chinese mail.I think that this problem is a common problem and i have tried a lot of solutions but none of these fit in my form.
Anybody knows something better?
I have create a contact form using php and flash and i have write the php file with this code:
<?
$to = "my mail here";
$msg = "$name\n\n";
$msg .= "$message\n\n";
$mailheaders = "MIME-Version: 1.0\r\n";
$mailheaders .= "Content-type: text/html; charset=UTF-8 \r\n";
mail($to, $subject, $msg,"Message From: Online client\nReply-To:, $mailheaders");
?>
The form is working ok but when i am trying to send a message in greek language i receive a chinese mail.I think that this problem is a common problem and i have tried a lot of solutions but none of these fit in my form.
Anybody knows something better?