Witajcie, od razu mówię, że jestem nowy w PHP. Mam problem z polskimi znakami w mailu, który będzie wysyłany do użytkowników. Mimo zastosowania kodowania, w dalszym ciągu pojawiają się krzaczki. Już próbowałem wielu sposobów, niestety - bezskutecznie. Proszę o pomoc.
<!html doctype>
<html lang="pl">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<?php
$adresMailowySubskrybenta = $_POST["mail"];
$imieSubskrybenta = $_POST["name"];
$tematWiadomosci = "Wiadomosc ze strony strona.pl";
$headers = "From: admin@strona.pl\r\nReply-To: admin@strona.pl";
$headers .= "\r\nContent-Type: multipart/mixed; boundary=\"PHP-mixed-".$random_hash."\"";
$output = "
--PHP-mixed-$random_hash
Content-Type: multipart/alternative; boundary='PHP-alt-$random_hash'
--PHP-alt-$random_hash
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<!html doctype>
<html>
<head>
<meta http-equiv='content-type' content='text/html; charset=UTF-8' />
</head>
<body>
<h2>Witaj serdecznie!</h2>
<p>Jest to pierwsza, niedokończona wersja autorespondera! Właśnie pracujemy w pocie czoła, abyś dostawał ładne i schludne wiadomości! :)</p>
</body>
</html>
--PHP-mixed-$random_hash
Content-Type: application/zip; name=slajd.zip
Content-Transfer-Encoding: base64
Content-Disposition: attachment
$attachment
--PHP-mixed-$random_hash--";
echo @mail($adresMailowySubskrybenta, $tematWiadomosci, $output, $headers);
?>
</body>
</html>