How can I archive an email in gmail with imap using php?
I can move an email to another folder with:
imap_mail_move($inbox, $email_number, "AnotherFolder");
But, I'm trying:
imap_mail_move($inbox, $email_number, "Archive");
And the email does not move. I also tried "[Gmail]\Archive".