w mailu z formularza kontaktowego nie wyświetlają się polskie znaki. Proszę o podpowiedź gdzie jest błąd.
index.html
contact-form-handler.php
<?php $errors = ''; $myemail = 'kontakt@mail.pl';//<-----Put Your email address here. { $errors .= "\n Błąd: wszystkie pola są wymagane"; } $name = $_POST['name']; $email_address = $_POST['email']; $message = $_POST['message']; "/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i", $email_address)) { $errors .= "\n Error: Invalid email address"; } { $to = $myemail; $email_subject = "Contact form submission: $name"; $email_body = "You have received a new message. ". " Here are the details:\n Name: $name \n Email: $email_address \n Message \n $message"; $headers = "From: $myemail\n"; $headers .= "Reply-To: $email_address"; //redirect to the 'thank you' page } ?> <!DOCTYPE HTML> <html lang="pl"> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <title>Contact form handler</title> </head> <body> <!-- This page is displayed only if there is some error --> <?php ?> </body> </html>
contact-form-thank-you.html
<!DOCTYPE HTML> <html lang="pl"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <!-- define some style elements--> <style> h1 { font-family : Arial, Helvetica, sans-serif; font-size : 16px; font-weight : bold; } label,a,body { font-family : Arial, Helvetica, sans-serif; font-size : 12px; } </style> <!-- a helper script for vaidating the form--> </head> </head> <body> Skontaktuje się z Państwem wkrótce! </body> </html>