PHP code example of zaxbux / wn-gmaildriver-plugin

1. Go to this page and download the library: Download zaxbux/wn-gmaildriver-plugin 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/ */

    

zaxbux / wn-gmaildriver-plugin example snippets


'mailers' => [

	// ...

	'gmail' => [
		'transport' => 'gmail',
	],

	// ...
],

'mailers' => [
	'gmail' => [
		'transport' => 'gmail',
		// ...

		'client_id' => '...',      // Your OAuth client ID
		'client_secret' => '...',  // Your OAuth client secret

		// ...
	],
],

'mailers' => [

	// ...

	'gmail' => [
		'transport' => 'gmail',
		
		// ...

		'scopes' => [
			\Google_Service_Gmail::GMAIL_READONLY,
		],
	],

	// ...
],