<?php
$nadawca="ja@serek.info";
$mail_header = "From: serek.info<$nadawca>\n";
$mail_header .= "Disposition-Notification-To: <$nadawca>\n";
$mail_header .= "Return-Path: <$nadawca>\n";
$mail_header .= "Errors-To: <$nadawca>\n";
$mail_header .= "Prevent-NonDelivery-Report: <$nadawca>\n";
$mail_header .= "MIME-Version: 1.0";
$mail_header .= "\nContent-Type: multipart/alternative; boundary=\"$boundary\"";
$mail_header .= "\n\nThis is a multi-part message in MIME format --";
// Text Mail
$mail_header .= "\n--$boundary";
$mail_header .= "\nContent-Type: text/plain; charset=iso-8859-2";
$mail_header .= "\nContent-Transfer-Encoding: 7bit";
$mail_header .= "\n\n\n$wstepMINE";
$mail_header .= "\n\n\n$trescMINE";
// HTML Mail
$mail_header .= "\n--$boundary";
$mail_header .= "\nContent-Type: text/html; charset=iso-8859-2";
$mail_header .= "\nContent-Transfer-Encoding: 7bit";
$mail_header .= "\n\n";
$mail_header .= "\n<html><head><META HTTP-EQUIV=\"Content-type\" CONTENT=\"text/html; charset=iso-8859-2\"></head>";
$mail_header .= "\n<body BGCOLOR=\"#F0F0F0\" >";
$mail_header .= "\n<TABLE ALIGN=\"LEFT\" BORDER=\"0\" width=\"100%\" STYLE=\"font-family: verdana; font-size: 10pt\">";
$mail_header .= "\n$wstep";
$mail_header .= "\n$trescHtml";
$mail_header .= "\n</table></body></html>";
$mail_header .= "\n--$boundary--";
$subject = "no i jak ?";
$mail = "palkaaaaaaaaa@wp.pl";
if (mail("$mail","$subject","",$mail_header)) echo "poszło ...";
?>
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 ?
Ten post edytował umatik 9.02.2006, 12:11:06