[thelist] IMAP Body

A Maynes andrew at milords.com
Thu Apr 7 10:44:41 CDT 2005


I have been messing around with IMAP but can only retrieve header... So
far.

Thank for the link Jay but I could make head nor tail of that thread.

I have added the fetch_body and tried other things but with no luck,
this is what I have so far if soeone could add a little bit of magic so
that I can retrieve the body I would appreciate it greatly



$headers = imap_headers($mbox);

if ($headers == false) {
   echo "There are no new messages<br />\n";
} else {
   while (list ($key, $val) = each ($headers)) {
       echo $val . "<br />\n";
   }
}

Thnks 
Andrew



More information about the thelist mailing list