PHP code example of thotam / thotam-gmail

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

    

thotam / thotam-gmail example snippets


DEFAULT_GOOGLE_MAIL_CLIENT_ID=""
DEFAULT_GOOGLE_MAIL_CLIENT_SECRET=""
DEFAULT_GOOGLE_MAIL_REFRESH_TOKEN=""
SurveyMail_GOOGLE_MAIL_REFRESH_TOKEN=""
BuddyMail_GOOGLE_MAIL_REFRESH_TOKEN=""
KbytMail_GOOGLE_MAIL_REFRESH_TOKEN=""
TuyendungMail_GOOGLE_MAIL_REFRESH_TOKEN=""

use Thotam\ThotamGmail\Traits\HasMailTraits;

use Thotam\ThotamGmail\Services\Message\Mail