Hi all,
After days and days of searching, I have been unable to find any explanation of how to use PHP to properly display an HTML formatted email message which was retrieved using PHP's IMAP functions. I know it is possible to do, because there are several webmail clients written in PHP! I have tried to find the answer by looking at their source codes, but they are WAY too complex for a humble wannabe intermidiate-level PHP coder like me!
I have been able to get messages from an IMAP server and spit out the HTML body part to the browser, which displays the message just fine, except for when there is an inline image in the original message. I can get the body part that contains the image, but I can't figure out how to get said image to show up where it belongs in the displayed HTML message.
Can anyone help me out with this? I'm guessing the answer lies somewhere in what you output for HTTP headers, but I have yet to find the magic combination.
Thanks muchos in advance,
Jeff