Moja strona jest postawiona na cmsie Joomla i ostatnio wgrałem do niej pewny moduł nazywa się mod J Dcontact.
Niestety za chiny ludowe nie umiem ustawić polskich znaków w samej TREŚCI wiadomości.
Tytuł oraz info o użytkowniku posiada polskie znaki, natomiast sama treść już nie.
Cała strona posiada kodowanie utf-8
Link do modułu: http://www.j-download.com/component/attach...ownload/12.html
Kod głównego pliku odpowiadającego za wysłanie wiadomości
<?php class modJdcontactHelper { { if($_POST){ $sales_address = $params->get( 'sales_address', 'sales@yourdomain.com' ); $support_address = $params->get( 'support_address', 'support@yourdomain.com' ); $billing_address = $params->get( 'billing_address', 'billing@yourdomain.com' ); $humantest = $_REQUEST['human_test']; $sum_test = $_REQUEST['sum_test']; $humantestpram = $params->get( 'humantestpram', '1' ); $headers = 'MIME-Version: 1.0rn'; $headers .= 'Content-type: text/html; charset=iso-8859-2'."\r\n"; $headers .= 'Wiadomość od: '.$name.' <'.$email.'>'."\r\n"; $message = "Imię: $name\nE-mail: $email\nTelefon: $phno\n\nWiadomość: $msg"; if ( $department == "sales") $to = $sales_address; elseif ( $department == "support") $to = $support_address; elseif ( $department == "billing") $to = $billing_address; else $to = $sales_address; if ( $name == "" ) { $result = "".JText::_('MOD_JDCONTACT_VLDNAME').""; } elseif (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/", $email)) { $result = "".JText::_('MOD_JDCONTACT_VALIDEMAIL').""; } else if($phno=="") { $result = "".JText::_('MOD_JDCONTACT_PHONENUMB').""; } elseif ( $subject == "" ) { $result = "".JText::_('MOD_JDCONTACT_MSGSUBJECT').""; } { $result = "".JText::_('MOD_JDCONTACT_MORETENWRD').""; } else if($humantestpram=='1' && $humantest!=$sum_test){ $result = "".JText::_('MOD_JDCONTACT_CORRECTNUM').""; } else { $sucs=1; } if( $selfcopy == "yes" ){ $sucs=1; } } if($sucs==1){ $result = "".JText::_('MOD_JDCONTACT_SUCCESSMSG').""; } else{ $result = "".JText::_('MOD_JDCONTACT_MAILSERVPROB').""; } } if($javascript_enabled == "true") { } } } } ?>