We will recommend first setup a Gmail Email Id first and check if it is working for you or not.
Then try with a custom email server email Id imap_open issue generally comes due to
- Your credentials not correct.
- Not sufficient permission provided for reading emails.
- Some authentication failure due to any certificate check.
For Gmail Do below things first:
Enable less secure app for gmail: https://myaccount.google.com/lesssecureapps
Please enable this also: https://accounts.google.com/b/0/DisplayUnlockCaptcha
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 this line for gmail:
$server_host = "{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX";