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']);