Hallo Cheatah,
dann sollte das doch eigentlich stimmen, oder?
$boundary_mixed = "ME-" . strtoupper(md5(uniqid(time())));
$boundary_related = "ME-" . strtoupper(md5(uniqid(time())));
$boundary_alternative = "ME-" . strtoupper(md5(uniqid(time())));
$headers = "From: "".addslashes($absendername)."" <".$absendermail.">\r\n";
$headers .= "Reply-To: ".$absendermail."\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-Mailer: PHP Mailskript / ".phpversion()."\r\n";
$headers .= "Content-Type: multipart/mixed; boundary="" . $boundary_mixed . ""\r\n";
$headers .= "Content-Transfer-Encoding: 7bit\r\n";
$headers .= "Diesen Teil der E-Mail sollten Sie nicht sehen.\r\n";
$headers .= "Wenn Sie das hier lesen, sollten Sie Ihren E-Mail-Client\r\n";
$headers .= "in einen MIME-kompatiblen E-Mail-Client tauschen.\r\n";
$headers .= "\r\n";
$headers .= "This part of the E-mail should never be seen.\r\n";
$headers .= "If you are reading this, consider upgrading your e-mail client\r\n";
$headers .= "to a MIME-compatible e-mail client.\r\n";
$headers .= "--" . $boundary_mixed . "\r\n";
// $nachricht = "Content-Type: multipart/related; boundary="" . $boundary_related . ""\r\n";
// $nachricht .= "--" . $boundary_related . "\r\n";
$nachricht = "Content-Type: multipart/alternative; boundary="" . $boundary_alternative . ""\r\n";
$nachricht .= "--" . $boundary_alternative . "\r\n";
$nachricht .= "Content-Type: text/plain; charset=iso-8859-1\r\n";
$nachricht .= "Content-Transfer-Encoding: quoted-printable\r\n";
$nachricht .= join('',file($vorlage_text));
$nachricht .= "--" . $boundary_alternative . "\r\n";
$nachricht .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$nachricht .= "Content-Transfer-Encoding: 8bit\r\n";
$nachricht .= join('',file($vorlage_html));
$nachricht .= "--" . $boundary_alternative . "--\r\n";
// $nachricht .= "--" . $boundary_related . "\r\n";
// $nachricht .= "Content-Type: image/jpeg\r\n";
// $nachricht .= "Content-Transfer-Encoding: base64\r\n";
// $nachricht .= "0.gif";
// $nachricht .= "--" . $boundary_related . "--\r\n";
$nachricht .= "--" . $boundary_mixed . "--\r\n";
mail($empfaengermail,$betreff,$nachricht,$headers);
Tut es aber nicht. Der HTML-Teil wird immer mit allen TAGS gezeigt, und ein Teil des Text-Teil vorneweg?! Verstehe ich nicht.