1. Go to this page and download the library: Download razzbee/php-libimap library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
$keyword = "hello";
//body must contain at least one occurrance of the keyword
$searchCritiria['BODY'] = $keyword;
//subject too must contain at least one occurrance of the keyword
$searchCritiria['SUBJECT'] = $keyword;
$mailBoxName = "INBOX";
$searchResults = $imap
->search($searchCritiria,$mailBoxName)
->limit(20)
->getResults();
json
"razzbee/php-libimap" : "dev-master"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.