providerwelt
Mitglied
Mein Script
jemand eine Idee wieso das einfach nicht geht.
PHP:
$empfaenger = "info@promotionhouse.de";
$betreff = "E-Mail mit Anhang"; // Betreff
$boundary = "einsehrlangerstring";
$header = "MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=\"$boundary\"
X-Priority: 3 (Normal)
From: Deinname <heinzi@gmx.de>
Return-Path: <heinzi2@gmx.de>
Reply-to: <heinzi2@gmx.de>";
$mailtext = "--$boundary
Content-Type: text/plain; charset=\"us-ascii\"
Content-Transfer-Encoding: 7bit
hier kannst du den mailtext einfügen...
--$boundary
Content-Type: application/pdf; name=\"Instrumentalplan_04.pdf\"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=\Instrumentalplan_04.pdf\"
".$_POST['pdf']."
--$boundary--
";
$ok = mail($empfaenger,$betreff,$mailtext,$header);
if($ok) {
echo "Versand erfolgreich abgeschlossen!";
} else {
die("Konnte die Mail nicht versenden");
}
jemand eine Idee wieso das einfach nicht geht.