SchweppesAle Posted May 28, 2010 Share Posted May 28, 2010 Hey, just started working on my first email script. I've managed to open a stream to the mail server using imap_open(). Which function(s) allows me to list all mail subjects and their associated message numbers(ids)? The following is actually pretty similiar to the example listed in the php manual. http://www.php.net/manual/en/function.imap-body.php I'd like to modify it further so that I can target specific messages rather than listing all of them. $check = imap_mailboxmsginfo($mbox); //$num = $check->Recent; $num = $check->Nmsgs; if($num >0) { echo imap_qprint(imap_body($mbox, $num)); } Quote Link to comment https://forums.phpfreaks.com/topic/203206-imap_open/ Share on other sites More sharing options...
SchweppesAle Posted June 1, 2010 Author Share Posted June 1, 2010 I take it this isn't done very often? Quote Link to comment https://forums.phpfreaks.com/topic/203206-imap_open/#findComment-1066128 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.