|   Mailinglisten-Archive | 
Hallo
es ist zum verzweifeln, schreibe ein Script zum Versenden von HTML/Text-
Mails, es funktioniert auf verschiedenen Clients und auch zum Teil  über
Browserinterface. Und doch nicht auf allen! irgendwie, sobald bei der
mixed-Message nur der Text angezeigt werden müsste, funktionierts nicht
mehr (siehe Anzeige unten). 
Kann mir jemand sagen, woran das liegen könnte oder kennt jemand einen
Tutorial? Die Mail-Class auf phpguru.org (htmlMimeMail) funktioniert
leider auf dem Server nicht !
Mein Script:
subject = stripslashes($subject);
	
	$text_message = ereg_replace ("%0D","",urlencode($text_message));
	$text_message = urldecode($text_message);
	$text_message = stripslashes($text_message);
	
	$von = $abs;
	$main_b = "----=_NextPart_".md5(rand());
	$text_b = "----=_NextPart_".md5(rand());
	$html_b = "----=_NextPart_".md5(rand());
	
	$h = "From: $von\n";
	$h .= "Reply-to: $von\n";
	$h .= "X-Mailer: warenquelle (http://www.warenquelle.ch)\n";
	$h .= "MIME-Version: 1.0\n";
	$h .= "Content-Type: multipart/mixed;\n\tboundary=\"$main_b\"\n";
	$mess  = "\n--$main_b\n";
	$mess .= "Content-Type: multipart/alternative;\n\tboundary=\"$text_b\"\n";
	$mess .= "\n--$text_b\n";
	$mess .= "Content-Type: text/plain; charset=\"ISO-8859-1\"\n";
	$mess .= "Content-Transfer-Encoding: 7bit\n\n";
	$mess .= ($text_message!="")?"$text_message":"Text portion of HTML Email";
	$mess .= "\n--$text_b\n";
	$mess .= "Content-Type: multipart/related;\n\tboundary=\"$html_b\"\n";
	$mess .= "\n--$html_b\n";
	$mess .= "Content-Type: text/html; charset=\"ISO-8859-1\"\n";
	$mess .= "Content-Transfer-Encoding: quoted-printable\n\n";
	$mess .= str_replace ("=", "=3D", $html_message)."\n";
	$mess .= "\n--$html_b--\n";
	$mess .= "\n--$text_b--\n";
	$mess .= "\n--$mail_b--\n";
	
	//send
	mail ($to_email, $subject, $mess, $h);
Vielen Dank & Gruss
thomas
Fehlermeldung:
------=_NextPart_0ef4dd712443a42ea3fe05d67c9e834c 
Content-Type: multipart/alternative; 
 boundary="----=_NextPart_b5be608245acbd9908d14ae79589a545" 
------=_NextPart_b5be608245acbd9908d14ae79589a545 
Content-Type: text/plain; charset="ISO-8859-1" 
Content-Transfer-Encoding: 7bit 
wohl 
------=_NextPart_b5be608245acbd9908d14ae79589a545 
Content-Type: multipart/related; 
 boundary="----=_NextPart_32f57af80bc940cf3054425a45030d42" 
------=_NextPart_32f57af80bc940cf3054425a45030d42 
Content-Type: text/html; charset="ISO-8859-1" 
Content-Transfer-Encoding: quoted-printable 
<html><head>
....
    php::bar PHP Wiki - Listenarchive