Witam, skleciłem taki skrypt:

  1. <HTML> 
  2. <HEAD><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2"> 
  3. </HEAD> 
  4.  
  5. <BODY> 
  6. <center><TABLE width="557" height="500"><TR> 
  7. <TD width="557" height="523"> 
  8.  
  9. <? if ($id = (int)$_GET['id'] ==1):
  10.  
  11. echo "<center><br><br><table border=\"0\"><form action=\"kontakt.php?id=2\" method=\"post\"
  12.  
  13. <tr> 
  14. <td valign=\"top\">Imie:</td> 
  15. <td><input type=\"text\" name=\"imie\" style=\"width: 250px\"></td> 
  16. </tr> 
  17.  
  18. <tr> 
  19. <td valign=\"top\">Nazwisko:</td> 
  20. <td><input type=\"text\" name=\"nazwisko\" style=\"width: 250px\"></td> 
  21. </tr> 
  22.  
  23. <tr> 
  24. <td valign=\"top\">Telefon:</td> 
  25. <td><input type=\"text\" name=\"telefon\" style=\"width: 250px\"></td> 
  26. </tr> 
  27.  
  28. <tr> 
  29. <td valign=\"top\">Adres e-mail:</td> 
  30. <td><input type=\"text\" name=\"email\" style=\"width: 250px\"></td> 
  31. </tr> 
  32. <tr><td><br> </td></tr> 
  33. <tr> 
  34. <td valign=\"top\">Tresc wiadomosci:</td> 
  35. <td><textarea name=\"tresc\" style=\"width: 250px; height: 100px\"></textarea></td> 
  36. </tr> 
  37.  
  38. <tr> 
  39. <td>&nbsp;</td> 
  40. <td><input type=\"submit\" name=\"submit\" value=\"Wyslij\">&nbsp; 
  41. <input type=\"reset\" value=\"Resetuj\"></td></form> 
  42. </tr> 
  43. </table> "; 
  44.  
  45.  
  46. ?> 
  47.  
  48.  
  49. <? exit; endif; ?> 
  50.  
  51.  
  52. <? if ($id = (int)$_GET['id'] ==2) { 
  53.  
  54. $message = "Nadawca: $_POST[imie] $_POST[nazwisko]\nE-mail: $_POST[email]\n\nTresc wiadomosci:\n$_POST[tresc]\n"; 
  55.  
  56. $header = "From: $_POST[imie] $_POST[nazwisko] <$_POST[email]>"; 
  57.  
  58. mail("darkwalker@o2.pl","Wiadomosc ze strony WWW","$message","$header") 
  59. or die('<center>Nie udalo sie wyslac wiadomosci.'); 
  60.  
  61. echo "<div align=\"center\"><strong><center>Wiadomosc zostala wyslana poprawnie!</strong></div>"; 
  62. } 
  63.  
  64. else { 
  65.  
  66.  print "<center><A HREF=\"kontakt.php?id=1\">Aby wyslac maila kliknij >> tutaj <<</A>"; 
  67. } 
  68. ?> 
  69.  
  70. </TR></TABLE> 
  71. </BODY> 
  72. </HTML>


Skrypt działa niby poprawnie, ale zamiast wysyłanego maila, na skrzynce dostaje odpowiedz od MAILER DAEMONA:
"
This is the Postfix program at host svn.gtk.pl. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to <postmaster> If you do so, please include this problem report. You can delete your own text from the attached returned message. The Postfix program <darkwalker@o2.pl>: host mx9.go2.pl[193.17.41.123] said: 550 Bad SPF records for [o2.pl:91.123.209.41], see http://spf.pobox.com/ (in reply to MAIL FROM command) "
No i nie wiem czemu tak sie dzieje. Na innym serwerze podobny skrypt działa mi poprawnie, ale serwer ten ma włączone register_globals.
Any help?