Skip to content

Commit

Permalink
oAth documentation updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Webklex committed Oct 15, 2020
1 parent a08fd06 commit 6b82256
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ $folder = $client->getFolder('INBOX.name');


#### oAuth
If you are using google mail or something similar, you might want to use oauth instead:
Please take a look at [the wiki article](https://github.com/Webklex/php-imap/wiki/Google-Mail---Gmail) for gmail / google mail setup.

Basic oAuth example:
```php
use Webklex\PHPIMAP\Clientmanager;

Expand All @@ -216,7 +218,7 @@ $client = $cm->make([
'encryption' => 'ssl',
'validate_cert' => true,
'username' => 'example@gmail.com',
'password' => 'PASSWORD',
'password' => 'ACCESS-TOKEN',
'authentication' => "oauth",
'protocol' => 'imap'
]);
Expand Down

0 comments on commit 6b82256

Please sign in to comment.