Re: [pear-webmaster] image is not shown in email
[email protected] ("Daniel O'Connor") Thu, 5 Sep 2013 18:51:38 +1000
| Newsgroups | php.pear.webmaster |
|---|---|
| Message-ID | <CAJsZyFCM8werdwrCfyHu=ggm2FHWFqBM6XLKhoQGp0u36YTMFA@mail.gmail.com> |
--001a113349a0b1bf7604e59f07d7 Content-Type: text/plain; charset=ISO-8859-1 Try pear-dev :) On 05/09/2013 12:00 AM, "H. Bolfing" <[email protected]> wrote: > 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 > > --001a113349a0b1bf7604e59f07d7--