PHP Classes

POP3 e-mail client: Access to e-mail mailboxes using the POP3 protocol

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (134)   Blog (2)    
Last Updated Ratings Unique User Downloads Download Rankings
2022-10-10 (11 months ago) RSS 2.0 feedStarStarStarStar 60%Total: 49,666 This week: 1All time: 4 This week: 108Down
Version License PHP version Categories
pop3class 1.0.4BSD License3Email, Networking, Stream wrappers


The class implements access to mailboxes using the POP3 protocol.

It features:

- Support secure connections using TLS
- Provides a stream wrapper class to access messages like files using fopen('pop3://user:pass@localhost/1', 'r');
- POP3 server access using standard and APOP login methods
- Authentication mechanisms implemented by SASL client classes like PLAIN, LOGIN, CRAM-MD5, NTLM (Windows or Linux/Unix via Samba), XOAUTH2, etc...
- Determining mailbox statistics (mailbox size in bytes and the number of stored messages)
- Listing of individual message sizes and identifier numbers
- Retrieving messages in data blocks of limited size to not exceed the available memory
- Retrieving messages all at once, separating the headers from the body, and limiting the number of message lines that it may retrieve at once
- Marking messages to be deleted
- Resetting the list of messages to be deleted
- Issuing of protocol NOOP command to avoid connection shutdown while in an idle state


Recommendation for a PHP sip client class
I need SIP2 script to run with using the TLS 1.2 protocol

What is the best PHP pop3 email to mysql class?
Read mailbox and insert ticket in MySQL database

Recommendation for a PHP class to read mail
Mail reader

Update MySQL from mail
I want to update my database using info sent by email

Picture of Manuel Lemos
  Performance   Level  
Name: Manuel Lemos is available for providing paid consulting. Contact Manuel Lemos .
Classes: 45 packages by
Country: Portugal Portugal
Age: 54
All time rank: 1
Week rank: 7 Down1 in Portugal Portugal Equal

  • pop3.gif
  Files folder image Files  
File Role Description
Accessible without login Plain text file browse_mailbox.php Example Example of browsing and display messages of a mailbox using the pop3:// stream handler on an already opened POP3 connection
Accessible without login Plain text file get_gmail_oauth_access_token.php Example Script to retrieve the Gmail OAuth access token
Accessible without login Plain text file Doc. Instructions on how to create a OAuth application to access the Gmail API
Accessible without login Plain text file LICENSE Lic. BSD License
Accessible without login Plain text file parse_message.php Example Example script to demonstrate how to open messages in a POP3 mailbox like files, and parse them with the MIME parser class
Plain text file pop3.php Class POP3 class file
Accessible without login Plain text file test_pop3.php Example POP3 class test page 23KB
Downloadpop3class-2022-10-10.tar.gz 22KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Simple Authentication and Security Layer Download .zip .tar.gz When the POP3 server requires authentication the SASL package provides support for implementing authentication mechanisms like: PLAIN, LOGIN, CRAM-MD5, NTLM (Windows or Linux/Unix with Samba). Conditional
PHP MIME Email Message Parser Download .zip .tar.gz Only needed to run the example that parses and decodes messages Conditional
 Version Control Reuses Unique User Downloads Download Rankings  
This week:1
All time:4
This week:108Down
User Ratings User Comments (13)
 All time
Great pop3 class.
10 years ago (Ketil Engmark)
This is a powerful package for PHP, allowing quick and easy P...
11 years ago (Alan)
amazing class
11 years ago (plonknimbuzz)
Although the examples are verbose we also need a simple versi...
12 years ago (Oceans)
12 years ago (Pablo)
Great job! Thanks a lot.
13 years ago (Mik Rom)
Works well Wish there was a quick_use_sample.
13 years ago (Tushar)
Really, really helpful.
13 years ago (Tanner M. Young)
Thank you very much for class!
14 years ago (Andrey Kostarev)
Боольшое &#10...
14 years ago (Leonid)
Really great class! Thanks a lot
14 years ago (Martin Rehberger)
really great class, everyone can make a webmail!
14 years ago (Roelof Roos)
no include in archive
15 years ago (Bugmenotter)