1. <?php
  2.  
  3. $boundary = strtoupper(md5(uniqid(time())));
  4.  
  5. $nadawca="ja@serek.info";
  6.  
  7. $mail_header = "From: serek.info<$nadawca>\n";
  8. $mail_header .= "Disposition-Notification-To: <$nadawca>\n";
  9. $mail_header .= "Return-Path: <$nadawca>\n";
  10. $mail_header .= "Errors-To: <$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. $mail = "palkaaaaaaaaa@wp.pl";
  38. if (mail("$mail","$subject","",$mail_header)) echo "poszło ...";
  39.  
  40. ?>


Powyższy kod poprawie wysyła maile jednak nie wiem co zrobic abym dostawał zwroty. Używałem tego kodu jakiś czas temu na innym serwerze i wszystko było ok (teraz zwroty nie działają na żadnym). Być może coś zostało zmienione po stronie serwera ...

Czy ktoś wie co mam zrobić aby powyższy kod wysyłał zwroty ?