[PHP] display imap inline image?

2005-01-28 Thread Fredrik Hampus
Hi! I have rewritten the script and now the output appers in a text form $testbody = imap_body($mbox, $msgno, "IMAGE/JPEG"); $testbody = base64_encode($testbody); // header('Content-Type: image/jpeg'); echo $testbody; This is a sample of the script how can i convert the ouput to an image/jpeg?

[PHP] display imap attached files?

2005-01-21 Thread Fredrik Hampus
Hi! Iam trying too make a page where the function is to display an attached .jpg file from a imap mailbox. This is a small code i found and rewrote some... include '/etc/labbuser'; $mbox = imap_open ("{localhost:993/imap/ssl/novalidate-cert}INBOX", "$imuser", "$impass"); $mno = "57"; $partty