Originally posted by eva-00
I use imap_open to open my email..... it's work
but imap_delete not work why???
example
imap_delete("$msgbox", id);
id is id email.......
imap_delete() marks messages for deletion. Messages marked for deletion will stay in the mailbox until either imap_expunge() is called or imap_close() is called with the optional parameter CL_EXPUNGE.
$mbox = imap_open ("{your.imap.host}INBOX", "username", "password") or die ("can't connect: " . imap_last_error());
imap_delete ($mbox, 1);
imap_expunge ($mbox);
imap_close ($mbox);