1. <?php
  2.  
  3. $boundary = strtoupper(md5(uniqid(time())));
  4.  
  5. $nadawca="ja@mojserek.info";
  6.  
  7. $mail_header = "From: Ja<$nadawca>\n";
  8. $mail_header .= "Return-path: ala<$nadawca>\n";
  9. $mail_header .= "Disposition-Notification-To: <$nadawca>\n";
  10. $mail_header .= "Errors-To: ala<$nadawca>\n";
  11. $mail_header .= "Prevent-NonDelivery-Report: <$nadawca>\n";
  12. $mail_header .= "MIME-Version: 1.0";
  13. $mail_header .= "\nContent-Type: multipart/alternative; boundary=\"$boundary\"";
  14. $mail_header .= "\n\nThis is a multi-part message in MIME format --";
  15.  
  16. // Text Mail
  17. $mail_header .= "\n--$boundary";
  18. $mail_header .= "\nContent-Type: text/plain; charset=iso-8859-2";
  19. $mail_header .= "\nContent-Transfer-Encoding: 7bit";
  20. $mail_header .= "\n\n\n$wstepMINE";
  21. $mail_header .= "\n\n\n$trescMINE";
  22.  
  23. // HTML Mail 
  24. $mail_header .= "\n--$boundary";
  25. $mail_header .= "\nContent-Type: text/html; charset=iso-8859-2";
  26. $mail_header .= "\nContent-Transfer-Encoding: 7bit";
  27. $mail_header .= "\n\n";
  28. $mail_header .= "\n<html><head><META HTTP-EQUIV=\"Content-type\" CONTENT=\"text/html; charset=iso-8859-2\"></head>";
  29. $mail_header .= "\n<body BGCOLOR=\"#F0F0F0\" >";
  30. $mail_header .= "\n<TABLE ALIGN=\"LEFT\" BORDER=\"0\" width=\"100%\" STYLE=\"font-family: verdana; font-size: 10pt\">";
  31. $mail_header .= "\n$wstep";
  32. $mail_header .= "\n$trescHtml";
  33. $mail_header .= "\n</table></body></html>";
  34.  
  35. $mail_header .= "\n--$boundary--";
  36. $subject = "no i jak ?";
  37. // $odbiorca = "palkaaaaaaaaa@sdgladh.pl";
  38. $odbiorca = "ja@mojserek.info";
  39. if (mail("$odbiorca","$subject","",$mail_header)) echo "poszło ...";
  40.  
  41. ?>


nie wiem dlaczego naglowek Return-path nie jest poprawnie odczytywany. Po odebraniu poczty i wyswietleniu wszystkich naglowkow widze : <nobody@mojserek.info>