File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,9 @@ $folder->idle(function($message){
178178```
179179
180180#### oAuth
181- If you are using google mail or something similar, you might have to use oauth instead:
181+ Please take a look at [ the wiki article ] ( https://github.com/Webklex/php-imap/wiki/Google-Mail---Gmail ) for gmail / google mail setup.
182182
183+ Basic oAuth example:
183184``` php
184185/** @var \Webklex\PHPIMAP\Client $client */
185186$client = \Webklex\IMAP\Facades\Client::make([
@@ -188,7 +189,7 @@ $client = \Webklex\IMAP\Facades\Client::make([
188189 'encryption' => 'ssl',
189190 'validate_cert' => true,
190191 'username' => '
[email protected] ',
191- 'password' => 'password ',
192+ 'password' => 'ACCESS-TOKEN ',
192193 'authentication' => "oauth",
193194 'protocol' => 'imap'
194195]);
You can’t perform that action at this time.
0 commit comments