Page 1 of 1

Question about getting selected mail to delete

Posted: Tue Jan 08, 2008 10:34 pm
by computerfairy
I am a beginner's beginner on PHP.

I really need help with my code.

I have a sent mail list, and I put in check boxes, so a user can click on the box and hopefully that would delete that selected email.

The trouble is: Though I do have the link correct, so that onced clicked, the next page seen says "email successfully deleted"; but, the email won't actually delete. :?

I don't know how to get the delete function to work properly. I believe I have the right variable in there; but, maybe I don't have it in the right spot? Or maybe I'm missing one small little detail.

What I would LOVE is if someone could volunteer to look over my code and tell me what I am doing wrong.
Not like you all don't have better things to do, I know, so I don't want to put anyone out. I would really appreciate it though if someone could help me on this, because I keep rearranging the code and it does no good, it just ends up messing up the look of the tables.

The website was built by someone else. So, I'm trying to figure out what names call to which functions. I have no contact with the previous owner of the site. I don't know who they are.

Thank you to anyone who decides to take a crack at helping me :)
I am terribly frusterated with PHP, and so I deeply appreciate it. :D

Posted: Wed Jan 09, 2008 4:22 am
by Kieran Huggins
I'll bet you're using the IMAP functions to access your mailbox, and you're calling imap_delete() to delete your message.

Mail deleted via IMAP is only marked as deleted, but doesn't actually go anywhere until you call imap_expunge() or imap_close().

Re: Question about getting selected mail to delete

Posted: Wed Jan 09, 2008 7:06 am
by superdezign
computerfairy wrote:The trouble is: Though I do have the link correct, so that onced clicked, the next page seen says "email successfully deleted"; but, the email won't actually delete. :?
Is this actual e-mail email or just an internal website kind of thing?
computerfairy wrote:What I would LOVE is if someone could volunteer to look over my code and tell me what I am doing wrong.
That's what we're all already doing. First though, you have to show us the code. :P