ddeboer / imap

Object-oriented, fully tested PHP IMAP library
MIT License
888 stars 253 forks source link

Google imap no longer supports username and password authentication. #537

Closed ronlinet closed 2 years ago

ronlinet commented 2 years ago

Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password. => https://support.google.com/accounts/answer/6010255?hl=en .

The standard client connection doesn’t work with imap.gmail.com anymore.

$server     = new Server('imap.gmail.com', 993, '/imap/ssl/novalidate-cert' );
$connection = $server->authenticate('random@gmail.com', 'xxxxxxxxxxx'); 

What are now the guidelines to use this client with imap.gmail.com ?

Slamdunk commented 2 years ago

Rely on app passwords: https://support.google.com/mail/answer/185833

Duplicate of #109