hallo,
bei mir schauts so aus, aber ohne attachement...;
<?php
// hier steht der absolute (!) [php_info()] include-pfad zum pear verzeichnis:
ini_set('include_path', '.:/home/strato/www/me/www.medienbu.de/htdocs/php/pear');
include('Mail.php');
include('Mail/mime.php');
$output = "html-text"
$text = 'Text version of email';
$html = $output;
$file = '../phpordnertestrechnung.txt';
$crlf = "\n";
$hdrs = array(
'From' => 'bestellung@medienbu.de',
'Subject' => 'Medienbu.de Bestellung'
);
$mime = new Mail_mime($crlf);
$mime->setTXTBody($text);
$mime->setHTMLBody($html);
$mime->addAttachment($file, 'text/plain');
$body = $mime->get();
$hdrs = $mime->headers($hdrs);
$empfaenger = $kunde['email'].', bestellung@medienbu.de';
$mail =& Mail::factory('mail');
$mail->send($empfaenger, $hdrs, $body);
?>
gruß, frankx