Thanks Purple!
Looks like this class (pop3.php) is not enough to serve the purpose. Pardon me for my ignorance but my limited knowledge of PHP does not provide me with the required comprehension power to decode your message. But atleast let me try.
Are you suggesting that there is a way to know the message status of the message through the pop3.php class? How?
Second, are you suggesting that POP3 is not the best way to check if there is a new email message in the mailbox? And IMAP based class will work best. Do you have any suggestions for these types of class?
Thanks,
John
John,
Apologies in return - I am saying the following:
The POP3 protocol does not return the message status at all - this is not a php issue its a POP3 design feature which is detailed in the RFC in gruesome detail. So simply the POP3 class you have found - and any class that implements reading email using the POP3 protocol will not work unless you (the developer) maintain the status of messages once you download them ie
Action..................................Status
Download the message...........New
User reads message...............Read
User forwards the message...Forwarded
User deletes the message.......Deleted
.....and so on
There is an alternative protocol to POP3 called IMAP which does give you extra info on the status of the messages on your server - the class I pointed you to above uses this protocol and has functions which should do what you need.
Ask if you need more clarification..
Purple