PHP Classes

PHP Email To DB: Retrieve e-mail messages into a MySQL database

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 61%Total: 8,553 All time: 193 This week: 46Up
Version License Categories
etodb 1.0.0FreewareEmail, Databases
Description 

Author

This class can retrieve messages from a mailbox and insert them into a MySQL database.

The class retrieves and parses messages from a mailbox using the PHP IMAP extension.

The parsed messages can be stored in a MySQL database table. Message attachments are stored in server files.

The class can also perform some basic spam checking on the retrieved messages by verifying the sender address against a blacklist, and verify the existence of banned words in the message subject or body. The sender blacklist and banned words are also stored in the database tables.

The message processing activity is logged in a separate database table.

The class can also retrieve the messages and logged actions from the database.

Innovation Award
PHP Programming Innovation award winner
August 2006
Winner


Prize: One downloadable copy of Komodo Pro
Manipulating e-mail messages and accessing databases have been some of the most popular uses of PHP.

This class provides a solution to retrieve e-mail messages into a MySQL database table, so they can be searched and manipulated in a more convenient way by PHP applications.

Manuel Lemos
Picture of Ernest Wojciuk
Name: Ernest Wojciuk <contact>
Classes: 1 package by
Country: Poland Poland
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Screenshots (1)  
  • Schema
  Files folder image Files (7)  
File Role Description
Plain text file emailtodb_v0.9.sql Data SQL
Plain text file class.emailtodb.php Class PHPLIB version
Plain text file example_1_class Example Configured class
Plain text file class.emailtodb_v0.9.php Class Class
Plain text file example_1_index Example Index file
Plain text file example_1_sql Example SQL source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:8,553
This week:0
All time:193
This week:46Up
User Ratings User Comments (7)
 All time
Utility:91%StarStarStarStarStar
Consistency:78%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:61%StarStarStarStar
Rank:990
 
Bardzo przydatne i dob&#380;e zrobione skrypty.
10 years ago (66damian66)
70%StarStarStarStar
This is excellent! I will add a few notes to help others use it.
14 years ago (Lil Peck)
62%StarStarStarStar
Thanks
11 years ago (James Munyan)
70%StarStarStarStar
the maysql tablestruktur is a bit to sinple for heavy use .
12 years ago (Hartmut Rothgänger)
67%StarStarStarStar
Found it very useful and easy to use
13 years ago (Josephat Kyando)
67%StarStarStarStar
a very fine tool
15 years ago (neuhardt)
70%StarStarStarStar
Very good work !! But: The var $message_id was not defined, s...
15 years ago (bartolotta)
65%StarStarStarStar