PHP code example of tdhungit / php-jemails
1. Go to this page and download the library: Download tdhungit/php-jemails 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/ */
tdhungit / php-jemails example snippets
composer
edit imap mail in src/Config/Config.php
$emailReader = new PHPJEmails\Libraries\Emails\Email_reader();
$result = $emailReader->byDate('2019-03-06', '2019-03-08');
$emailReader->close();
header("Content-Type: text/plain");
print_r($result);