i wrote a code that connect to my mail box in gmail and draw specific
picture from specific message with the function imap_fetchbody.after i
did this,how can i show this picture(without save it)?
this is my code:
<?php
$ServerName = "{imap.gmail.com:993/imap/ssl/novalidate-cert}";
$UserName = "user";
$PassWord = "pass";
$mbox = imap_open($ServerName, $UserName,$PassWord) or die("Could
not open Mailbox - try again later!");
$hdr = imap_check($mbox);
echo "Num Messages " . $hdr->Nmsgs ."<br>";
$MN = $hdr->Nmsgs;
$overview=imap_fetch_overview($mbox,"1:$MN",0);
$size=sizeof($overview);
$i=$size-1;
$val=$overview[$i];
$msgno=$val->msgno;
$fileContent=imap_fetchbody($mbox,$msgno,2);
imap_close($mbox);
?>