Page 1 of 1

Problem with mail form

Posted: Thu Sep 25, 2008 3:13 pm
by nikpony
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?

Re: Problem with mail form

Posted: Thu Sep 25, 2008 3:50 pm
by hysteric
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

Posted: Thu Sep 25, 2008 3:59 pm
by nikpony
I have already tried it my friend...

Re: Problem with mail form

Posted: Fri Sep 26, 2008 5:47 am
by nikpony
Anybody else pls?A solution...

Re: Problem with mail form

Posted: Sat Sep 27, 2008 10:05 am
by nikpony
Help pls anybody...