GMAIL not available using IMAP

I'm trying to get Gmail sent items using Imap, but it gives me an error saying "Notification: Unknown: [NONEXISTENT] Unknown mailbox: Sent (error) (errflg = 2) to Unknown at line 0"

$hostname = '{imap.gmail.com:993/imap/ssl}Sent'; $username = ' anrc.wipro@gmail.com '; $password = '****************'; /* try to connect */ $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error()); 
+4
source share
1 answer

I believe that the β€œSent” folder is actually [Gmail]/Sent Mail

+12
source

Source: https://habr.com/ru/post/1441225/


All Articles