Danke Martin dass du mir zur Seite stehst.
Also das ganze mal Stück für Stück. Der Folgende Code funktioniert:
$mail_header = "From: $von";
/* boundary */
$boundary = strtoupper(md5(uniqid(time())));
/* MIME-mail-header */
$mail_header .= "\nMIME-Version: 1.0";
$mail_header .= "\nContent-type: multipart/mixed; boundary=$boundary";
Die Mail wird abgeschickt. Ist natürlich leer...
Supi denk ich mir und möchte einfach nur Text dazu hängen:
$mail_header = "From: $von";
/* boundary */
$boundary = strtoupper(md5(uniqid(time())));
/* MIME-mail-header */
$mail_header .= "\nMIME-Version: 1.0";
$mail_header .= "\nContent-type: multipart/mixed; boundary=$boundary";
/* Hier faengt der normale Mail-Text an */
$mail_header .= "\n--$boundary";
$mail_header .= "\nContent-type: $content_type_s";
$mail_header .= "\nContent-Transfer-Encoding: 8bit";
$mail_header .= "\n\n$mail_content";
$mail_header .= "\n--$boundary--";
Der Code erzeugt folgende Ausgabe bei mir:
From: info@example.org
MIME-Version: 1.0
Content-type: multipart/mixed; boundary=8DF9D748182045668798A9321F491541
--8DF9D748182045668798A9321F491541
Content-type: text/plain
Content-Transfer-Encoding: 8bit
ist der eigentliche mailtext (html-text)
--8DF9D748182045668798A9321F491541--
Sieht eigentlich Gesund aus. Aber allein das funktioniert nicht :(.
Gruß
$%§&$&§/*#*"§4§$"§$
T-Rex