PHP Classes

PHP IMAP Search: Find and save messages in IMAP server to database

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 225 This week: 1All time: 8,172 This week: 257Up
Version License PHP version Categories
base_imap 1.0GNU General Publi...5Email, PHP 5, Databases, Searching


This class can find and save messages in IMAP server to database.

It can connect to a given IMAP server and access a given mailbox account.

The class can search for messages in the mailbox based on given criteria like ALL, ANSWERED, BCC, BEFORE, BODY, CC, DELETED, FLAGGED, FROM, KEYWORD, NEW, OLD, ON "date", RECENT, SEEN, SINCE, SUBJECT, TEXT "string", TO, UNANSWERED, UNDELETED, UNFLAGGED, UNKEYWORD "string" and UNSEEN.

The found messages can be saved to a MySQL database table using MySQLi.

Picture of Abhijit Jagtap
  Performance   Level  
Name: Abhijit Jagtap <contact>
Classes: 1 package by
Country: India India
Age: 29
All time rank: 4051276 in India India
Week rank: 231 Up24 in India India Up

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file example.php Example To find the unread emails when looping through look for the ->Unseen property like so:
Accessible without login Plain text file mails.sql Data sql file

  Files folder image Files  /  src  
File Role Description
  Plain text file imap.php Class class file

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:8,172
This week:257Up
 User Ratings  
 All time