Problem with mail form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nikpony
Forum Newbie
Posts: 8
Joined: Tue Sep 16, 2008 4:53 am

Problem with mail form

Post 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?
hysteric
Forum Newbie
Posts: 3
Joined: Thu Sep 25, 2008 3:31 pm

Re: Problem with mail form

Post 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.
nikpony
Forum Newbie
Posts: 8
Joined: Tue Sep 16, 2008 4:53 am

Re: Problem with mail form

Post by nikpony »

I have already tried it my friend...
nikpony
Forum Newbie
Posts: 8
Joined: Tue Sep 16, 2008 4:53 am

Re: Problem with mail form

Post by nikpony »

Anybody else pls?A solution...
nikpony
Forum Newbie
Posts: 8
Joined: Tue Sep 16, 2008 4:53 am

Re: Problem with mail form

Post by nikpony »

Help pls anybody...
Post Reply