Zdravim vsechny,
mam problem s diakritikou ve svem formulari. Ikdyz mam zapsane kodovani v headers, stale mi do mailu prijde e-mail plny kosticek a nesmyslu, ktere vzniknou z diakritickych znamenek. Muzete mi prosim nekdo poradit? Dekuji
$message = "Obdrželi jste e-mail z www stránek: \n\n";
foreach ($c as $key => $val) {
$message .= ucwords($key) . ": $val \n";
}
$message .= "IP: {$_SERVER['REMOTE_ADDR']} \n";
$message .= "Browser: {$_SERVER['HTTP_USER_AGENT']}";
if (strstr($_SERVER['SERVER_SOFTWARE'], "Win")) {
$headers = "From: info@domena.cz \n".
"Return-Path: $from\n".
"MIME-Version: 1.0\n".
"Content-Type: text/plain; charset=\"iso-8859-2\"\n".
"Content-Transfer-Encoding: 8bit";
$headers .= "Reply-To: {$c['email']}";
} else {
$headers = "From: info@domena.cz \n";
$headers .= "Reply-To: {$c['email']}";
}
$recipient = "info@domena.cz";
if (mail($recipient,$subject,$message,$headers)) {
echo "<p class=\'content_message_ok\'>Váš e-mail byl úspěšně odeslán.</p>";