Jump to content

imap_open


SchweppesAle

Recommended Posts

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));
}

Link to comment
https://forums.phpfreaks.com/topic/203206-imap_open/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.