Hi nochmal,
ich habe nun den verantwortlichen teil des scriptes gefunden:
Hier im header ist was faul. nur was?????
$header = "From: info@OpenSpace-Online.com\r\n";
// $header .="Cc: fso70@hotmail.com\r\n"; // zweitempfaenger = probleme der formatierung
$header .= "MIME-Version: 1.0\r\n";
$header .="Content-Type: multipart/mixed; boundary=$boundary\r\n";
$header.="\r\n";
$header .="--$boundary\r\n";
$header .="Content-Type: text/html\r\n";
$header .="Content-Transfer-Encoding: quoted-printable\r\n\n";
$header .="$text\r\n\n";
$header .="--$boundary\r\n";
$header .="Content-Type: application/pdf; name=dummy_vertrag.pdf\r\n";
$header .="Content-Transfer-Encoding: base64\r\n";
$header .="Content-Disposition: attachment; filename=dummy_vertrag.pdf\r\n";
$header .="\n\n".$datei_inhalt;
$header .="--boundary=$boundary--";
MfG