can anyone tell me where the $msgno is coming from??
i have seen a ton of examples that pass $msgno or $msgid in to a imap_fetchstructure or imap_fetchbody function but i can't see where they are getting a msg number??
$mbox = imap_open ("{ourdomain.com/imap/notls:143}", "$username", "$password");
$msg_struct = imap_fetchstructure($mbox, $msgno);
i connect just fine, can read the folders and see how many messages there are....
but i can't seem to get the structure split out so i can grab the message content. i get various errors depending on what i try...
all i want to do is grab the text & subject to dump in a db.
any help would be great!!!