Reputation: 21
Google has turned off access to gmail from less secure apps. Therefore I cannot connect to gmail service with "php_imap" and read emails. Is there any way I can solve this? Or another solution I can use?
My current link code is:
$imap = imap_open("{imap.gmail.com:993/imap/ssl}INBOX", $_POST['username'], $_POST['password']);
Upvotes: 1
Views: 2382
Reputation: 31
In your account settings - security, after enabling two-step verification, set an application-specific password, which you can use to replace the original login password
Upvotes: 3