image is not shown in email
[email protected] ("H. Bolfing") Wed, 4 Sep 2013 15:53:22 +0200
| Newsgroups | php.pear.webmaster |
|---|---|
| Message-ID | <000001cea976$21b5a2f0$6520e8d0$@[email protected]> |
------=_NextPart_000_0001_01CEA986.E53E72F0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hello,
I have this code.
<?php
include('Mail.php');
include('Mail/mime.php');
$message = new Mail_mime();
$html = file_get_contents("./mail_buffer.htm");
$message->setHTMLBody($html);
$file =
$_SERVER['HTTP_HOST']."/".$updir."/".$dir."/".$Ordner."/".$dateiName;
$message->addHTMLImage ($file , $c_type = 'image/jpeg' ,
$name = 'image' , $isfile = true , $content_id = null );
$body = $message->get();
$extraheaders = array("From"=>"shop@xyz",
"Subject"=>"Einkauf im shop");
$headers = $message->headers($extraheaders);
$mail = Mail::factory("mail");
$mail->send("info@xyz", $headers, $body); // empfaenger
?>
..but the image is not shown in email (MS Outlook), only the path, beginning
with ../ (the rest oft he path is shown correctly). Can somebody help me ?
Hans
------=_NextPart_000_0001_01CEA986.E53E72F0--