PHP code example of dbeurive / imapconfig

1. Go to this page and download the library: Download dbeurive/imapconfig 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/ */

    

dbeurive / imapconfig example snippets


use dbeurive\imapconfig\Gmail;

$user       = 'YourGmailUser';
$password   = 'YourGmailPassword';
$imapConf   = new Gmail();
$imapStream = $imapConf->getImapStream($user, $password);

use dbeurive\imapconfig\Gmail;

$user       = 'YourGmailUser';
$password   = 'YourGmailPassword';
$imapConf   = new Gmail();
$imapStream = imap_open($imapConf->mailbox(), $user, $password);