Projects / POP 3 client class

POP 3 client class

POP 3 client is a PHP class that allows you to access mail boxes using the POP3 protocol. It provides a stream wrapper class for retrieving messages like files using the PHP fopen function, establishes secure connections using TLS, accesses servers using normal and APOP login methods, supports authentication mechanisms such as PLAIN, LOGIN, CRAM-MD5, NTLM (Windows or Linux/Unix via Samba) via the PHP SASL library, and supports listing of message sizes, retrieval of a message at once, separating the headers from the body, retrieving a message in small chunks to not exceed the available memory, and deleting messages.

Operating Systems

Recent releases

  •  04 Feb 2014 07:42

    Release Notes: This version avoids making static calls to the class. The examples use a stream handler named mlpop3 to avoid colliding with PHP's pop3 stream handler. Also added was an example of how to use secure connections with TLS, which is necessary for accessing Gmail.

    •  02 Feb 2009 10:15

      Release Notes: A bug in the APOP authentication implementation was fixed.

      •  25 Apr 2008 08:01

        Release Notes: This release fixes inadvertent class calls passing parameters by reference.

        •  09 Jan 2008 13:10

          Release Notes: This release introduces the possibility to open and read messages in a mailbox with PHP file access functions using URLs like pop3://connection/message, where "connection" is the name of an already established connection to the POP3 server. A bug was fixed that was preventing the closing of connections to the server when an opened message was not fully retrieved.

          •  04 Oct 2006 13:08

            Release Notes: The POP3 connection quit handshake is now forced by default, since some servers may take too much time to figure that the client has disconnected and keep the mailboxes locked. The missing stream wrapper function to close the POP3 mailbox was added because that was preventing access to the same mailbox more than once in the same script.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.