Контакт форма изпраща мейли на йероглифи

perer

Registered
Здравейте!
Трябва ми конкат форма, намерих си една. Работи идеално, но мейлите ги получавам на йероглифи.
Как мога да го оправя?

Благодаря!
 
Това е файла, който изпраща мейла т.е. send.php
Код:
<?php


$subject = $_POST["subject"];
$message = $_POST["message"];
$from = $_POST["from"];
$verif_box = $_POST["verif_box"];


$message = stripslashes($message); 
$subject = stripslashes($subject); 
$from = stripslashes($from); 


if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){
	// if verification code was correct send the message and show this page
	mail("pere@perer.net", 'Online Form: '.$subject, $_SERVER['REMOTE_ADDR']."\n\n".$message, "From: $from");
	// delete the cookie so it cannot sent again by refreshing this page
	setcookie('tntcon','');
} else if(isset($message) and $message!=""){

	header("Location: contacts.php?subject=$subject&from=$from&message=$message&wrong_code=true");
	exit;
} else {
	echo "no variables received, this page cannot be accessed directly";
	exit;
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Съобщение изпратено</title>
<style type="text/css">

</style></head>

<body>
Вашето съобщение е изпратено<br />
<br />
Върнете се <a href="contacts.php">обратно</a>
</body>
</html>
 
Задавай енкодинга от php не от html.

Код:
header("Content-type: text/html;charset=cp1251");
(Сложи го в началото на файла.)
 

Back
Горе