Answer the question
In order to leave comments, you need to log in
How to get emails from public folder?
There is a [email protected] mailbox, into which the Inbox folder was shared from the [email protected] mailbox. There is a folder and letters in the web interface. I try like this:
$host = "host";
$address = "[email protected]"
$password = "password";
$authServer = "{" . $host. ":993/imap/ssl/novalidate-cert}";
$mbox = imap_open($authServer . 'INBOX', $address, $password, OP_DEBUG, 0, array('DISABLE_AUTHENTICATOR' => 'GSSAPI'))
$list = imap_list($mbox, $authServer, "*");
dd($list);
Answer the question
In order to leave comments, you need to log in
Try any email client (not web) to access this folder. If it doesn't work out, then it won't work out of PHP either.
Because the "shared folder" is an invention of a particular mail site, not IMAP.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question