Dlaczego nie wysyła wiadomości e-mail?
<?php { ////////// USTAWIENIA ////////// $email = 'dandi2001@o2.pl'; // Adres e-mail adresata $subject = 'Nowe konto'; // Temat listu $message = '--------------------------------------------!'; // Komunikat $error = 'Wystąpił błąd podczas wysyłania formularza'; // Komunikat błędu $charset = 'iso-8859-2'; // Strona kodowa ////////////////////////////// $head = "MIME-Version: 1.0\r\n" . "Content-Type: text/plain; charset=$charset\r\n" . "Content-Transfer-Encoding: 8bit"; $body = ''; foreach ($_POST as $name => $value) { { { } } } echo mail($email, "=?$charset?B?" . base64_encode($subject) . "?=", $body, $head) ? $message : $error; } else { ?> <form action="?" method="post"> Tutaj umieść wszystkie pola formularza </form> <?php } ?>