<?php // Naglowki mozna sformatowac tez w ten sposob. include "baza.php"; $naglowki = "Reply-to: TyresWorld <info@tyresworld.ie>".PHP_EOL; $naglowki .= "From: TyresWorld <info@tyresworld.ie>".PHP_EOL; $naglowki .= "MIME-Version: 1.0".PHP_EOL; $naglowki .= "Content-type: text/html; charset=iso-8859-2".PHP_EOL; $message = $_POST['message'] ; $email = $_POST['email'] //Wiadomość najczęściej jest generowana przed wywołaniem funkcji $wiadomosc = "<html> <head> <title>Wiadomość e-mail</title> </head> <body style='background-image: url(../img/tlo.png)'> <p><b>Odpowiedź:</b> " . $_POST['message'] . "</p> </body> </html>"; { } ?>
odnosi on sie do pliku
<? include "index.php"; include "baza.php"; ?> <br> <form action="mail.php" method="POST"> <table border="0"> <tr> <td> email: </td> <td> </td> </tr> <tr> <td> Temat: </td> <td> <input type="text" name="temat" placeholder="Temat Wiadomości" id="temat"> </td> </tr> <tr> <td> Wiadomość: </td> <td> </td> </tr> </table> <input type="submit" name="powrot" value="Powrót"> <input type="submit" name="edytuj" value="Wyślij"> </form> <? { header("Location: <a href="http://touchofbutterfly.com/admin"%3b%29;" target="_blank">http://touchofbutterfly.com/admin");</a> } ?>
Problem polega na tym że pierwszy plik mi nie działa próbowałem na kilka sposobów. nie pobiera maila na którego ma wyslac...