GMAIL sent folder not accessible using IMAP
Asked Answered
A

2

6

I am trying to fetch Gmail sent items using Imap but it gives me error saying "Notice: Unknown: [NONEXISTENT] Unknown Mailbox: Sent (Failure) (errflg=2) in Unknown on line 0"

$hostname = '{imap.gmail.com:993/imap/ssl}Sent';
$username = '[email protected]';
$password = '****************';

/* try to connect */
$inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error());
Angstrom answered 22/10, 2012 at 8:15 Comment(0)
B
16

I believe the 'Sent' folder is actually [Gmail]/Sent Mail

Barb answered 22/10, 2012 at 8:39 Comment(3)
Beware that the folder names can be localized too.Farce
THANKS i am able to access now using [Gmail]/Sent Mail ,can i get list of folders in gmail accountAngstrom
Use XLIST to get folder names and their purpose (sent email, junk...): limilabs.com/blog/localized-gmail-imap-foldersDeipnosophist
O
0

If anyone need the folder name in Hungarian: [Gmail]/Elk&APw-ld&APY-tt levelek

Omni answered 29/9, 2024 at 21:23 Comment(1)
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From ReviewZoroastrian

© 2022 - 2025 — McMap. All rights reserved.