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?
Problem with mail form
Moderator: General Moderators
Re: Problem with mail form
nikpony wrote: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?
try this charset ISO 8859-7. this is a greek charset.
Re: Problem with mail form
I have already tried it my friend...
Re: Problem with mail form
Anybody else pls?A solution...
Re: Problem with mail form
Help pls anybody...