Witam potrzebuje pomocy dlaczego nie wysyła mi maila??
<?php
$adres = "xxxx@tlen.pl";
$informacje = "".$_POST['imie']."";
$informacje = "".$_POST['nazwisko']."";
$informacje = "".$_POST['email']."";
$informacje = "".$_POST['telefon']."";
$tresc = "".$_POST['tekst']."";
$nagłówek="From: Somebody <".$_POST['email']."> ";
$nagłówek.="Reply-To: Somebody <".$_POST['email']."> ";
$nagłówek.="X-Mailer: PHP ";
$nagłówek.="X-Priority: 1 ";
$nagłówek.="Return-Path: <".$_POST['email']."> ";
if ($_POST['bt'] == "wyslij") {
if (($_POST['imie'] != "") AND ($_POST['nazwisko'] != "") AND ($_POST['email'] != "") AND ($_POST['telefon'] != "") AND ($_POST['tekst'] != "")) {
$send = mail($adres,$informacje,$tresc,$nagłówek); if ($send)
$message = "Wiadomość została wysłana...";
else $message = "Widomość nie została wysłana, ponów próbę..."; }
else $message = "Nie wypełniono wszystkich pól..."; } ?>
<form action="" method="post">
<h1> <input type="text" name="imie" /><br /></h1>
<h2> <input type="text" name="nazwisko" /><br /></h2>
<h3> <input type="text" name="email" /><br /></h3>
<h4> <input type="text" name="telefon" /><br /></h4>
<h5> <textarea name="tekst" rows="3" cols="40"></textarea><br></h5>
<h6> <input type="submit" name="bt" value="wyslij" /></h6>
<h7><p>
<?php echo $message ?></p></h7>
</form>
Z góry dzięki za pomoc.
Powód edycji: [erix] wydzieliłem i dodałem bbcode