naszukałem się trochę po forum wprowadziłem trochę zmian i nadal w mailu mam krzaki zamiast polskich znaków.
<?php if($_POST['sendMail']) { try { $Name = Validator::length(30,$_POST['name'],'podpis'); $subject = "[homepage] ".Validator::length(40,$_POST['topic'],'temat'); $email = Validator::email($_POST['email']); $recipient = "MOJADRES@gmail.com"; $mail_body = Validator::length(500,$_POST['content'],'treść'); } catch(Exception $e) { $tpl->assign('SendError',$e->GetMessage()); $Mailerror = true; $tpl->assign('oldTopic',$_POST['topic']); $tpl->assign('oldEmail',$_POST['email']); $tpl->assign('oldContent',$_POST['content']); $tpl->assign('oldName',$_POST['name']); } // to miało pomoc ale nie pomaga // $mail_body = sprintf( "=?utf-8?B?%s?=", base64_encode($mail_body) ); // $Name = sprintf( "=?utf-8?B?%s?=", base64_encode($Name) ); $header = "MIME-Versio: 1.0r\n"."Content-type: text/html; charset=UTF-8r\n"; $header .= "From: ". $Name . " <" . $email . ">r\n"; if(!$Mailerror) { $tpl->assign('send',true); { $tpl->assign('result',true); } else { $tpl->assign('result',false); } } } ?>