Question

I am doing the webmail project in php using imap function. We can Drag & Drop mail item one folder to another folder but that is working for INBOX folder messages only. I don't know why. Is their any mail settings need ? or my coding mistake ?

This is my coding to move to the another folder,

$imapresult = @imap_mail_move($mbox,$move_uid,$mailbox,CP_UID);
        if($imapresult==false){die("error".imap_last_error());}
        //delete selected email from current folder
        @imap_expunge($mbox);
        imap_close($mbox,CL_EXPUNGE);
Was it helpful?

Solution

If it is working for one folder, then it should work for others also.

Please check if you have any specific dropable options for INBOX. Also check the from folder and to folder in the move method.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top