PHP code example of 094ikis09 / php-imap
1. Go to this page and download the library: Download 094ikis09/php-imap 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/ */
094ikis09 / php-imap example snippets
$mbh = imap2_open($server, $username, $token, OP_XOAUTH2);
if (! $mbh) {
error_log(imap2_last_error());
throw new \RuntimeException('Unable to open the INBOX');
}
shell
composer