Login   Register  
PHP Classes

Class: pop3-stream

Icontem
elePHPant

  Classes of Rick Hodger  >  pop3-stream  >  Download  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: pop3-stream Support forum
Base name: pop3-stream
Description: Stream wrapper to access POP3 messages (old)
Version: 1.2
Required PHP version: 5.0
License: Free for non-commercial use
 
  Screenshots Screenshots   Author   Group folder image Groups   Detailed description   Freshmeat project  
  Applications   Related links   Files Files  

Screenshots

Screenshot of the exportpop3.php application
File Role Description
Accessible without login Image file pop3-screenshot.png Screen Screenshot of the exportpop3.php application

Author

Picture of Rick Hodger
Name: Rick Hodger <e-mail contact>
Published packages: 3 Browse this author's classes Browse this author's classes
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Home page: http://www.potato-people.com/

Innovation Award

PHP Programming Innovation award winner
January 2008
Winner
POP3 is a popular Internet protocol used to retrieve messages sent to a mailbox.

It is necessary to understand the POP3 protocol to send commands and interpret responses in order to retrieve the list of messages in a mailbox and retrieve the message contents.

This class greatly simplifies that task by acting as a stream wrapper. It lets PHP applications list POP3 mailboxes as if they were directories and retrieve messages as if they were files.

Manuel Lemos

Groups

Group folder image Email Email sending and receiving View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Stream wrappers Access resources like regular files View top rated classes

Detailed description

This class implements a POP3 stream handler that can be used to access messages in mailboxes using POP3 (or secure POP3, as of v1.2) as if they were regular files.

It accesses a given POP3 mailbox using the PHP IMAP extension authenticating as an user with password specified in the URL passed to the PHP fopen function.

The class can read individual message headers and body in a single stream when the PHP fread function is called.

It can also list all the messages in the mailbox when the PHP readdir function is called.

The class can retrieve details of a message using the PHP function stat or delete a message with the PHP unlink function.

Please note that this wrapper has issues handling deletion of emails. It is recommended that you use Manuel Lemos' wrapper instead.

Freshmeat project

Project record: phppop3stream

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Related links

Link Description
Source Website Source Website

Files

File Role Description
Plain text file pop3.stream.php Class File wrapper include
Plain text file example1.php Example Example #1 - Read an email
Plain text file example2.php Example Example #2 - Listing the contents of a POP3 account
Plain text file example3.php Example Gmail example using secure POP3
Plain text file exportpop3.php Example Example application - Downloads emails as text files to a folder.
Plain text file README.TXT Doc. Important information
Download all files: pop3-stream.tar.gz pop3-stream.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.