Ale żadne dodawania "$headers .= 'Content-Transfer-Encoding: 8bit'. "\n\r\n";0" nie pomaga...
Na wszystkie maile przychodzi wiadomość z polskimi znakami, tylko na poczta.home.pl przychodzą krzaki...
Spójrzcie proszę na mój kod...
<?php session_start(); ?><!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=utf-8" /> <?php $email_to = "moj@email"; $email_subject = "Tytul Maila"; function died($error) { // your error code can go here echo "We're sorry, but there's errors found with the form you submitted.<br />..Przykro nam, w wypełnionym formularzu pojawił się błąd.<br /><br />"; echo "Please go back and fix these errors.<br />..Proszę wrócić i ponowie wypełnić formularz.<br />"; } // validation expected data exists died('We are sorry, but there appears to be a problem with the form you submitted.<br />..Przykro nam, w wypełnionym formularzu pojawił się błąd.'); } $name = $_POST['name']; // required $surname = $_POST['surname']; // required $email_from = $_POST['email']; // required $occupation = $_POST['occupation']; // not required $institution = $_POST['institution']; // not required $institution = $_POST['institution']; // not required $comments = $_POST['comments']; // not required $error_message = ""; $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/'; $error_message .= 'The Email Address you entered does not appear to be valid.<br /> ..Podany adres mailowy jest błędny.<br />'; } $string_exp = "/^[A-Za-ząćęłńóśźżĄĆĘŁŃÓŚŹŻ .'-]+$/"; $error_message .= 'The First Name you entered does not appear to be valid.<br />..Imię jest błędne.<br />'; } $error_message .= 'The Last Name you entered does not appear to be valid.<br />..Nazwisko jest błędne.<br />'; } died($error_message); } $email_message = "Form details below.\n\n"; function clean_string($string) { } $email_message .= "Name: ".clean_string($name)."\n"; $email_message .= "Surname: ".clean_string($surname)."\n"; $email_message .= "Email: ".clean_string($email_from)."\n"; $email_message .= "Occupation: ".clean_string($occupation)."\n"; $email_message .= "Institution: ".clean_string($institution)."\n"; $email_message .= "Comment: ".clean_string($comments)."\n"; // create email headers $headers = 'From: '.$email_from."\r\n". 'Reply-To: '.$email_from."\r\n" . $headers .= 'MIME-Version: 1.0' ."\r\n"; $headers .= 'Content-Type: text/HTML; charset=ISO-8859-1' . "\r\n"; $headers .= 'Content-Transfer-Encoding: 8bit'. "\n\r\n"; $headers .= $text . "\r\n"; ?> <?php } ?>