hab im forum gesucht und gefunden -> frage ist das script ok? und was müßte ich modifizieren um txt-files als anhang zu senden besondern im content-type?
$boundary = strtoupper(md5(uniqid(time())));
$file = chunk_split(base64_encode($file));
$mail_header .= "\nMIME-Version: 1.0";
$mail_header .= "\nContent-Type: multipart/mixed; boundary=$boundary";
$mail_header .= "\n\nThis is a multi-part message in MIME format -- Dies ist eine mehrteilige Nachricht im MIME-Format";
$mail_header .= "\n--$boundary";
$mail_header .= "\nContent-Type: text/plain";
$mail_header .= "\nContent-Transfer-Encoding: 8bit";
$mail_header .= "\n\n$Hier_der_normale_Text_der_Email";
$mail_header .= "\n--".$boundary;
$mail_header .= "\nContent-Type: image/jpeg; name=\"".$wirklicher_filename."\"";
$mail_header .= "\nContent-Transfer-Encoding: base64;
$mail_header .= "\nContent-Disposition: attachment; filename=\"".$wirklicher_filename."\"";
$mail_header .= "\n\n".$file;
$boundary = strtoupper(md5(uniqid(time())));
$file = chunk_split(base64_encode($file));
$mail_header .= "\nMIME-Version: 1.0";
$mail_header .= "\nContent-Type: multipart/mixed; boundary=$boundary";
$mail_header .= "\n\nThis is a multi-part message in MIME format -- Dies ist eine mehrteilige Nachricht im MIME-Format";
$mail_header .= "\n--$boundary";
$mail_header .= "\nContent-Type: text/plain";
$mail_header .= "\nContent-Transfer-Encoding: 8bit";
$mail_header .= "\n\n$Hier_der_normale_Text_der_Email";
$mail_header .= "\n--".$boundary;
$mail_header .= "\nContent-Type: image/jpeg; name=\"".$wirklicher_filename."\"";
$mail_header .= "\nContent-Transfer-Encoding: base64;
$mail_header .= "\nContent-Disposition: attachment; filename=\"".$wirklicher_filename."\"";
$mail_header .= "\n\n".$file;
Kommentar