PHP Classes

How can I display an image which was sent inline the email?

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  How can I display an image which was...  >  (Un) Subscribe thread alerts  
Subject:How can I display an image which was...
Summary:how can I display an image in the array?
Messages:2
Author:fire2009
Date:2009-01-09 19:11:26
Update:2009-01-09 19:26:41
 

  1. How can I display an image which was...   Reply   Report abuse  
Picture of fire2009 fire2009 - 2009-01-09 19:11:26
Hi there,

I hope you can help me.
I have used your decode function to parse an email with inline image content. In the parameters I omited SkipBody so that the images would be stored as a string data.

I am confused however, how to display the image which is stored.

Here's what I am trying so far:

$image= base64_decode($decoded[0]['Parts'][1]['Parts'][1]['Body']);

echo $image;

please help!

  2. Re: How can I display an image which was...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-01-09 19:26:41 - In reply to message 1 from fire2009
The HTML has something like cid:image_content_id . You need to replace that by an URL of a script that serves the data of the image.