IMAP Authentication with Gmail and App Password I want to add a gmail account with IMAP setting turned on and an App Password created as an IMAP server and I get the following error. Since I had a similar problem with Microsoft 365 account before, I wanted to solve my problem using Google's ability to login with App Password. I could be entering something wrong. Any help would be greatly appreciated.
Tested HOST site entries:
{imap.gmail.com:993}INBOX
{imap.gmail.com:993}
2023-02-27 16:33:06.028 ** ERROR ** [V10.2.2] ERROR ** 2023-02-27 16:33:06.028 ** ERROR ** [V10.2.2] on file '/home/customer/www/...........com/public_html/model/ImapMailbox.php' at line (86) 2023-02-27 16:33:06.028 ** ERROR ** [V10.2.2] cause = imap_open(): Couldn't open stream {imap.gmail.com:993}INBOX 2023-02-27 16:33:06.028 ** ERROR ** [V10.2.2] imap_open(): Couldn't open stream {imap.gmail.com:993}INBOX in ImapMailbox.php at line 86 2023-02-27 16:33:06.028 ** ERROR ***** [V10.2.2] Error while executing CRON script : fix the source issue and manually restart the CRON Process 2023-02-27 16:33:06.029 ===== TRACE ===== Cron::run() - Error on checkEmails()
The problem is solved.
For those who may have the same problem;
IMAP Host:
{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX
IMAP pwd:
The password generated via Google account interface
This entry and with the use of app password in the IMAP pwd field, the system started to receive emails.