laravel - php imap_open Gmail sent folder returns empty array
Get the solution ↓↓↓So my code looks like this:
$mailbox = imap_open('{imap.gmail.com:993/imap/ssl}Sent Mail', env('MAIL_USERNAME'), env('MAIL_PASSWORD'));
$mailsIds = imap_search($mailbox, 'ALL');
And I getfalse
. I've tried changing "Sent Mail" to "[Google Mail]/Sent Mail", "Sent", "SENT MAIL" and "SENT", but I getfalse
all the time, but there ARE emails in this folder. What am I doing wrong?
Answer
Solution:
Well I called function that shows a list of all available folders and got several imap utf7 encoded variants, from which[Gmail]/&BBIEQQRP- &BD8EPgRHBEIEMA-
was exactly what I needed.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: your system folder path does not appear to be set correctly. please open the following file and correct this: index.php
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.