Solved "imap_open : couldn't open stream for gmail" - getting error while set up IMAP
-
I have installed UVdesk successfully and thanks for the brief documentation.
but there is one issue when i tried to refresh the mailbox command I am getting this - imap_open : couldn't open stream for gmail
I didn't find any solution in the document, can anyone help me?
Note: I am using gmail for set up -
Please check and update below thing hope it will help.
Enable less secure app for gmail: https://myaccount.google.com/lesssecureapps
Please enable this also: https://accounts.google.com/b/0/DisplayUnlockCaptcha
Also locate path on your project.
vendor/uvdesk/mailbox-component/Console/RefreshMailboxCommand.php
open file and add below line there.
Check in screenshot to add a line of code here: https://prnt.sc/w5bc5u
Add below code for gmail under refreshMailbox() function in start.
$server_host = "{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX";
Thanks,
-
@Sanjeev
Thanks for your help.