So I'm using this class that will count the amount of email in the pop3 server but the problem is, not all emails in the pop3 account are new (unread).
My question is how do I tell if an email is read or not on a pop3 server?
Count unread emails via POP3?
Moderator: General Moderators
- DaveTheAve
- Forum Contributor
- Posts: 385
- Joined: Tue Oct 03, 2006 2:25 pm
- Location: 127.0.0.1
- Contact:
Re: Count unread emails via POP3?
Open a connection to the POP3 server and implement POP3 protocol:
http://en.wikipedia.org/wiki/Post_Offic ... og_example
http://en.wikipedia.org/wiki/Post_Offic ... og_example
There are 10 types of people in this world, those who understand binary and those who don't
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Count unread emails via POP3?
Use the IMAP API to connect to a pop3 server and read messages:
http://ca3.php.net/manual/en/ref.imap.php
Code: Select all
$imap = imap_open ("{domain.com:110/pop3}INBOX", "user", "pass")