Hallo!
Es tut mir leid, dass ich euch noch einmal belästigen muss, aber ich verstehe nicht, wieso diese Email nicht funktioniert:
$mail_header = "";
$boundary = strtoupper(md5(uniqid(time())));
/* Beginne den Mail-Header mit MIME-Mail-Header */
$mail_header .= "MIME-Version: 1.0\r\n";
$mail_header .= "Content-Type: multipart/related; boundary="$boundary";\r\n\r\n";
/* Hier faengt der normale Mail-Text an */
$mail_header .= "--$boundary\r\n";
$mail_header .= "Content-Type: text/html;\r\n";
$mail_header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
$mail_header .= "<hmtl><body>Das ist eine Email mit Anhang <img src=3D"cid:1"></body></html>\r\n\r\n";
/* Hier faengt der Datei-Anhang an */
$mail_header .= "--$boundary\r\n";
$mail_header .= "Content-Type: image/jpeg; name="test.jpg";\r\n";
$mail_header .= "Content-Transfer-Encoding: base64\r\n";
$mail_header .= "Content-ID: <1>\r\n";
$file = "../upload/08D28658793748CDBD1F3FC930FE14BB/2F4901007EA6369B474AAF177C147B6F/5BAE12FDB6AAB5DE6BE0AD6BCB75114E_TN.jpg";
$handle = fopen($file, "r");
$attach_content = fread($handle, filesize($file));
fclose($handle);
$reply = chunk_split(base64_encode($attach_content),76,"\n");
$mail_header .= $reply."\r\n";
$mail_header .= "--$boundary--\r\n";
$mail_header .= "--$boundary\r\n";
$mail_header .= "Content-Type: application/x-httpd-php; name="test.phtml";\r\n";
$mail_header .= "Content-Transfer-Encoding: base64\r\n";
$mail_header .= "Content-Disposition: attachment\r\n\r\n";
$file = "../admin/DictionaryDE.phtml";
$handle = fopen($file, "r");
$attach_content = fread($handle, filesize($file));
fclose($handle);
$reply = chunk_split(base64_encode($attach_content),76,"\n");
$mail_header .= $reply."\r\n";
$mail_header .= "--$boundary--\r\n";
mail("Kael@steuefr.org","Ja eine Email","",$mail_header);
Ich werde schon zu blöd sein.
Grüße
Andi